Skip to content

Commit

Permalink
Merge pull request #311 from cygnusv/infulas
Browse files Browse the repository at this point in the history
Don't check for ape-infura when not using infura
  • Loading branch information
theref committed Aug 22, 2024
2 parents bd18f40 + 3772347 commit 6759c77
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions deployment/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ def check_infura_plugin() -> None:
"""Checks that the ape-infura plugin is installed."""
if is_local_network():
return # unnecessary for local deployment
if networks.provider.name != 'infura':
return # unnecessary when using a provider different than infura
try:
import ape_infura # noqa: F401
from ape_infura.provider import _ENVIRONMENT_VARIABLE_NAMES # noqa: F401
Expand Down

0 comments on commit 6759c77

Please sign in to comment.