Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
antazoey committed Aug 23, 2024
1 parent 5c7dc82 commit 8f8f125
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions ape_vyper/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -507,16 +507,17 @@ def _get_imports(
if f"{source_id_stem}{ext}" in dep_project.sources:
# Dependency located.
if not dependency.project.manifest.contract_types:
# In this case, the dependency *must* be compiled so the ABIs
# can be found later on.
# In this case, the dependency *must* be compiled
# so the ABIs can be found later on.
try:
dependency.compile()
except Exception as err:
# Compiling failed. Try to continue anyway to get
# a better error from the Vyper compiler, in case
# something else is wrong.
logger.warning(
f"Failed to compile dependency '{dependency.name}' @ '{dependency.version}'.\n"
f"Failed to compile dependency '{dependency.name}' "
f"@ '{dependency.version}'.\n"
f"Reason: {err}"
)

Expand Down

0 comments on commit 8f8f125

Please sign in to comment.