Hello,

I'm using Alembic 0.4.1.
I experience such exception:
/usr/lib/python2.7/dist-packages/alembic/script.pyc in get_base(self)
    283         """
    284         for script in self._revision_map.values():
--> 285             if script.down_revision is None \
    286                 and script.revision in self._revision_map:
    287                 return script.revision

AttributeError: 'NoneType' object has no attribute 'down_revision'

It looks that it may happen because in _revision_map()  in line 217 there 
is:
         map_[None] = None
so I understand that in revision_map there is None item.
So line 285 may blow if for loop encounters None item in the map.
It blows only sometimes because the for loop may exit earlier before None 
item is encountered.

Is it a bug or do I miss something?

Regards,
Godfryd

-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy-alembic" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to