Skip to content
Permalink
Browse files

Catching exceptions

  • Loading branch information
fredericojordan committed Aug 5, 2019
1 parent 8b5987c commit a34c0068f22d91aa705f3c584c81bba07a4d76bb
Showing with 2 additions and 2 deletions.
  1. +2 −2 progress.py
@@ -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 {

0 comments on commit a34c006

Please sign in to comment.
You can’t perform that action at this time.