Commits

Vinay Sajip committed 85252d9

Better handling of absence of pycrypto.

Comments (0)

Files changed (1)

elixir/ext/encrypted.py

 database row.
 '''
 
-from Crypto.Cipher import Blowfish
+try:
+    from Crypto.Cipher import Blowfish
+except ImportError:
+    Blowfish = None
 from elixir.statements import Statement
 from sqlalchemy.orm import MapperExtension, EXT_CONTINUE, EXT_STOP