From 707948664887b48fe109c538e08764239f4f8bd7 Mon Sep 17 00:00:00 2001 From: slush Date: Mon, 25 Nov 2024 10:34:44 -0600 Subject: [PATCH] fix: raise attr error if explicitly defined ones are not requested --- ape_infura/__init__.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ape_infura/__init__.py b/ape_infura/__init__.py index ba16b43..e20f9aa 100644 --- a/ape_infura/__init__.py +++ b/ape_infura/__init__.py @@ -22,9 +22,8 @@ def __getattr__(name: str): return NETWORKS - import ape_infura.provider as module - - return getattr(module, name) + else: + raise AttributeError(name) __all__ = [