Skip to content

Conversation

@Krout0n
Copy link
Contributor

@Krout0n Krout0n commented Nov 16, 2020

Related: this comment

If we revert this, e will be unbounded. Try the following code.

e = None
try:
    raise OSError
except OSError as e:
    pass
print(e) # Unbounded

So, I make the timing of logging and raising be done in for-iteration.

@brianmay brianmay merged commit ff70f58 into sshuttle:master Nov 16, 2020
@Krout0n Krout0n deleted the fix-handling-OSError branch November 16, 2020 07:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants