Note we’re up to 0.6.1 right now, but still looks like that’s just an API 
method that isn’t used or tested anywhere, so yup.  Fixed in 
rc0fbd149c4dc58488967eb2828a.



On Dec 27, 2013, at 9:30 AM, Michal Nowikowski <[email protected]> wrote:

> 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.

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

Reply via email to