gdbm-import
authorMatthias Klose <doko@debian.org>
Mon, 10 Jan 2022 10:55:59 +0000 (10:55 +0000)
committerMatthias Klose <doko@debian.org>
Mon, 10 Jan 2022 10:55:59 +0000 (10:55 +0000)
# DP: suggest installation of python3-gdbm package on failing _gdbm import

# DP: suggest installation of python3-gdbm package on failing _gdbm import

Gbp-Pq: Name gdbm-import.diff

Lib/dbm/gnu.py

index b07a1defffdf2fcc8532f52ed49751fb0733a1a7..24ba36f67615a84c13de7425fdbe1f911f4e09aa 100644 (file)
@@ -1,3 +1,6 @@
 """Provide the _gdbm module as a dbm submodule."""
 
-from _gdbm import *
+try:
+    from _gdbm import *
+except ImportError as msg:
+    raise ImportError(str(msg) + ', please install the python3-gdbm package')