bkyryliuk opened a new pull request #17731:
URL: https://github.com/apache/superset/pull/17731
### SUMMARY
fix: call op.get_bind() inside the function, not on import
Error log:
```
s/abe27eaf93db_add_extra_config_column_to_alerts.py", line 34, in <module>
connection = op.get_bind()
File "<string>", line 7, in get_bind
File
"/srv/yaps/mounts/superset/superset_build/bcf71bd610347f780fa22f8365c6a015a70248e5-a38d46655a6ec6c4745dd039486ca598/dropbox/apx/superset/superset_cli.runfiles/__main__/thirdparty/superset_python3/pip/alembic/alembic-cpython-38/lib/alembic/util/langhelpers.py",
line 78, in _name_error
raise NameError(
NameError: Can't invoke function 'get_bind', as the proxy object has not yet
been established for the Alembic 'Operations' class. Try placing this code
inside a callable.
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]