dabo Commit
Revision 5585
Date: 2010-01-03 16:59:22 -0800 (Sun, 03 Jan 2010)
Author: Ed
Trac: http://trac.dabodev.com/changeset/5585
Changed:
U trunk/dabo/lib/SimpleCrypt.py
Log:
Added an additional exception case to the decrypt() call that wasn't getting
handled properly.
Diff:
Modified: trunk/dabo/lib/SimpleCrypt.py
===================================================================
--- trunk/dabo/lib/SimpleCrypt.py 2010-01-03 20:13:57 UTC (rev 5584)
+++ trunk/dabo/lib/SimpleCrypt.py 2010-01-04 00:59:22 UTC (rev 5585)
@@ -81,7 +81,7 @@
if padlen:
ret = ret[:-padlen]
return ret
- except AttributeError:
+ except (ValueError, AttributeError):
self.showWarning()
tmpKey = "".join([aString[i] for i in range(0,
len(aString), 3)])
val = "".join([aString[i+1:i+3] for i in range(0,
len(aString), 3)])
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message:
http://leafe.com/archives/byMID/[email protected]