Skip to content

Commit

Permalink
Improved exception handling
Browse files Browse the repository at this point in the history
  • Loading branch information
joamag committed Mar 12, 2019
1 parent 34c6de5 commit 0c73bae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mvc/src/mvc_utils/controller.py
Expand Up @@ -5161,7 +5161,7 @@ def _cast_safe(self, value, cast_type = str, default_value = None):
# returns the value casted to the caller method as
# expected by the cast safe operation
return value_casted
except:
except Exception:
# returns the default value, this is the fallback
# operation because it was not possible to cast
# the value properly (safe operation)
Expand Down

0 comments on commit 0c73bae

Please sign in to comment.