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
Migrated issue, originally created by Sébastien Leblanc (@sebleblanc)
Emacs leaves backup files named .#name_of_my_python_file.py. It seems that Alembic will pick them up (as if it was looking for all files "*.py") but when it tries to load them the interpreter trips up because it is not a valid Python module name.
Alembic should validate the name of the module before attempting to load it, ignoring it if it its name is invalid.
File "/home/sebleblanc/myproject/virtualenv/lib/python3.5/site-packages/alembic/util/pyfiles.py", line 87, in load_python_file
raise ImportError("Can't find Python file %s" % path)
ImportError: Can't find Python file /home/sebleblanc/myproject/app/migrations/versions/.#fc57a0d49adc_leftover_file.py
The text was updated successfully, but these errors were encountered: