Skip to content

Conversation

@rmbruntz
Copy link
Contributor

int(input()) needs to be moved inside the try block to catch TypeError from a non-integer input

int(input()) needs to be moved inside the try block to catch TypeError from a non-integer input
@hi-liang
Copy link
Member

hi-liang commented Jul 1, 2022

Hm, wouldn't this actually be a ValueError if int(input()) is not valid? But yes to moving inside the block

@syreal17 syreal17 merged commit 6c257c9 into picoCTF:master Jul 11, 2022
@syreal17
Copy link
Collaborator

Yes, it is a ValueError that I think is intended here. Will fix in another push.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants