diff options
-rw-r--r-- | Lib/anydbm.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/anydbm.py b/Lib/anydbm.py index ba6fa7b..f051200 100644 --- a/Lib/anydbm.py +++ b/Lib/anydbm.py @@ -45,7 +45,7 @@ only if it doesn't exist; and 'n' always creates a new database. try: class error(Exception): pass -except: +except (NameError, TypeError): error = "anydbm.error" _names = ['dbhash', 'gdbm', 'dbm', 'dumbdbm'] |