Commits

Marcin Kuzminski committed fd170e0

fixed error message on empty target_metadata _script undefined

Comments (0)

Files changed (1)

alembic/autogenerate.py

                 "Can't proceed with --autogenerate option; environment "
                 "script %s does not provide "
                 "a MetaData object to the context." % (
-                    context._script.env_py_location
+                    context.script.env_py_location
                 ))
     connection = context.bind
     diffs = []