We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4bd58a5 commit a076422Copy full SHA for a076422
azure_functions_worker/loader.py
@@ -146,8 +146,7 @@ def index_function_app(function_path: str):
146
from azure.functions import FunctionApp
147
app: Optional[FunctionApp] = None
148
for i in imported_module.__dir__():
149
- if type(getattr(imported_module, i,
150
- None)).__name__ == FunctionApp.__name__:
+ if isinstance(getattr(imported_module, i, None), FunctionApp):
151
if not app:
152
app = getattr(imported_module, i, None)
153
else:
0 commit comments