You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using decorator @functions_framework.errorhandler makes the python script impossible to import without creating an application.
Import produces the error:
AttributeError: module 'functions_framework' has no attribute 'errorhandler'
Example
Trying to start run 'importer.py' script produce the above error.
Using decorator
@functions_framework.errorhandler
makes the python script impossible to import without creating an application.Import produces the error:
Example
Trying to start run 'importer.py' script produce the above error.
decorated.py
importer.py
Possible source of the issue
The error handler decorator is registered in
functions_framework.create_app()
and it is not available without calling this functons.The text was updated successfully, but these errors were encountered: