Skip to content

Instantly share code, notes, and snippets.

@andrewgodwin
Created February 20, 2020 19:44
Show Gist options
  • Save andrewgodwin/884f997261d8d754663344c5f9341794 to your computer and use it in GitHub Desktop.
Save andrewgodwin/884f997261d8d754663344c5f9341794 to your computer and use it in GitHub Desktop.
import builtins
class FakeBaseException(BaseException):
pass
builtins.BaseException = FakeBaseException
try:
raise ValueError("boo")
except BaseException as e:
pass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment