Need help cloning? Visit
is a free Git and Mercurial client for Windows.
is a free Git and Mercurial client for Mac.
If an item in the scanned module was not something that mapper() could handle and was not a Table object, the entity variable would never be defined and the if entity not in entries: line would fail with
if entity not in entries:
UnboundLocalError: local variable 'entity' referenced before assignment
I ran across this when my model module contained
Base = declarative_base()
and describe() wasn't sure what to do with it.