From 5b33bf4a204e08c7e72a7b6827d2ef59ab0ab416 Mon Sep 17 00:00:00 2001 From: Yan Date: Tue, 5 Nov 2024 01:43:51 -0700 Subject: [PATCH] don't nest these dumb exceptions --- pwnshop/__main__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pwnshop/__main__.py b/pwnshop/__main__.py index 7528473..2279c78 100644 --- a/pwnshop/__main__.py +++ b/pwnshop/__main__.py @@ -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 = [ ]