Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions httpbin/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def jsonify(*args, **kwargs):
ignore_classes=["werkzeug.exceptions.NotFound"],
)
bugsnag.flask.handle_exceptions(app)
except:
except Exception:
app.logger.warning("Unable to initialize Bugsnag exception handling.")

# -----------
Expand Down Expand Up @@ -1307,7 +1307,7 @@ def decode_base64(value):
encoded = value.encode("utf-8") # base64 expects binary string as input
try:
return base64.urlsafe_b64decode(encoded).decode("utf-8")
except:
except Exception:
return "Incorrect Base64 data try: SFRUUEJJTiBpcyBhd2Vzb21l"


Expand Down
4 changes: 2 additions & 2 deletions httpbin/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -402,12 +402,12 @@ def __parse_request_range(range_header_text):

try:
right = int(components[1])
except:
except Exception:
pass

try:
left = int(components[0])
except:
except Exception:
pass

return left, right
Expand Down