Skip to content

Commit

Permalink
don't nest these dumb exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
zardus committed Nov 5, 2024
1 parent 50d3f96 commit 5b33bf4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pwnshop/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,11 @@ def verify_challenge(challenge, debug=False, flag=None, strace=False):
f.write(flag.encode())

try:
challenge.verify(strace=strace)
return challenge.verify(strace=strace)
except TypeError as e:
if "strace" not in str(e):
raise
challenge.verify()
return challenge.verify()

def verify_many(args, challenges):
failures = [ ]
Expand Down

0 comments on commit 5b33bf4

Please sign in to comment.