Skip to content

Commit

Permalink
Catching exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
fredericojordan committed Aug 5, 2019
1 parent 8b5987c commit a34c006
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions progress.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ def get_template_fields(progress):
scale = 100
try:
scale = int(request.args.get("scale"))
except ValueError:
except (TypeError, ValueError):
pass

progress_width = 60 if title else 90
try:
progress_width = int(request.args.get("width"))
except ValueError:
except (TypeError, ValueError):
pass

return {
Expand Down

0 comments on commit a34c006

Please sign in to comment.