Skip to content

Commit

Permalink
Fixed issues with exception handling
Browse files Browse the repository at this point in the history
  • Loading branch information
joamag committed Mar 12, 2019
1 parent b5d033d commit a700a4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/eadapters/models/budy/bd_common.py
Expand Up @@ -105,7 +105,7 @@ def _handle_error(error, fallback = None, code = 400, encoding = "utf-8"):
# tries to retrieve the message from the provided # tries to retrieve the message from the provided
# information, as expected by the structure # information, as expected by the structure
message = data_j.get("message", None) message = data_j.get("message", None)
except: except Exception:
# in case there was an unexpected error interpreting # in case there was an unexpected error interpreting
# the data then sets the data itself as the message # the data then sets the data itself as the message
message = data_s message = data_s
Expand Down

0 comments on commit a700a4c

Please sign in to comment.