Skip to content

Commit a076422

Browse files
committed
Reverted loader.py change
1 parent 4bd58a5 commit a076422

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

azure_functions_worker/loader.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,7 @@ def index_function_app(function_path: str):
146146
from azure.functions import FunctionApp
147147
app: Optional[FunctionApp] = None
148148
for i in imported_module.__dir__():
149-
if type(getattr(imported_module, i,
150-
None)).__name__ == FunctionApp.__name__:
149+
if isinstance(getattr(imported_module, i, None), FunctionApp):
151150
if not app:
152151
app = getattr(imported_module, i, None)
153152
else:

0 commit comments

Comments
 (0)