From 0d73aca4751ce1ca292c3086ec729c3cfada8237 Mon Sep 17 00:00:00 2001 From: Arohan Ajit Date: Mon, 23 Sep 2024 12:50:53 -0700 Subject: [PATCH] Update gui/wxpython/core/utils.py Co-authored-by: Vaclav Petras --- gui/wxpython/core/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/wxpython/core/utils.py b/gui/wxpython/core/utils.py index 4e73f10c112..facd82156d7 100644 --- a/gui/wxpython/core/utils.py +++ b/gui/wxpython/core/utils.py @@ -632,7 +632,7 @@ def _getGDALFormats(): """Get dictionary of available GDAL drivers""" try: ret = grass.read_command("r.in.gdal", quiet=True, flags="f") - except Exception: + except grass.CalledModuleError: ret = None return _parseFormats(ret), _parseFormats(ret, writableOnly=True)