Skip to content

Commit

Permalink
fix: broken exception lol (#775)
Browse files Browse the repository at this point in the history
  • Loading branch information
BobTheBuidler authored Nov 19, 2024
1 parent 2ea7e2e commit 70c6938
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions y/contracts.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,11 +265,13 @@ def __getattr__(self, name: str) -> Events:
return super().__getattr__(name)


_COMPILER_ERROR = CompilerError(
"y.Contract objects work best when we bypass compilers.\n"
"In this case, it will *only* work when we bypass.\n"
"Please ensure autofetch_sources=False in your brownie-config.yaml and rerun your script."
)
class CompilerError(Exception):
def __init__(self):
super().__init__(
"y.Contract objects work best when we bypass compilers.\n"
"In this case, it will *only* work when we bypass.\n"
"Please ensure autofetch_sources=False in your brownie-config.yaml and rerun your script."
)


class Contract(dank_mids.Contract, metaclass=ChecksumAddressSingletonMeta):
Expand Down

0 comments on commit 70c6938

Please sign in to comment.