Commits

Marcin Kuzminski committed fd170e0

fixed error message on empty target_metadata _script undefined

  • Participants
  • Parent commits bcb21de

Comments (0)

Files changed (1)

File 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 = []