From: Matthias Klose Date: Thu, 20 Mar 2025 02:07:39 +0000 (+0800) Subject: gdbm-import X-Git-Tag: archive/raspbian/3.9.2-1+rpi1+deb11u3^2~65 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=0335b215ef3dfa75c0bce0ea051b5d13d663053c;p=python3.9.git gdbm-import # 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 --- diff --git a/Lib/dbm/gnu.py b/Lib/dbm/gnu.py index b07a1de..24ba36f 100644 --- a/Lib/dbm/gnu.py +++ b/Lib/dbm/gnu.py @@ -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')