Skip to content

Commit

Permalink
shows http error in verbose mode only
Browse files Browse the repository at this point in the history
  • Loading branch information
Kareem Zidane committed Apr 1, 2017
1 parent 6f48390 commit b352c0d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion submit50
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,9 @@ def submit(problem):
urllib.request.urlretrieve(url, filename=submit.EXCLUDE)
lines = open(submit.EXCLUDE)
except Exception as e:
cprint(e)
if run.verbose:
cprint(str(e))

raise Error("Invalid problem. Did you mean to submit something else?") from None

# check for missing files
Expand Down

0 comments on commit b352c0d

Please sign in to comment.