From 1362a1c21d54b0e2b973db11d0f867d0f473b76c Mon Sep 17 00:00:00 2001 From: Arohan Ajit Date: Thu, 24 Oct 2024 12:26:33 -0400 Subject: [PATCH] fix exception --- gui/wxpython/photo2image/ip2i_manager.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gui/wxpython/photo2image/ip2i_manager.py b/gui/wxpython/photo2image/ip2i_manager.py index c8c5bbdc4d..d0726a3bae 100644 --- a/gui/wxpython/photo2image/ip2i_manager.py +++ b/gui/wxpython/photo2image/ip2i_manager.py @@ -43,7 +43,6 @@ from gui_core.mapdisp import FrameMixin from core.gcmd import RunCommand, GMessage, GError, GWarning from core.settings import UserSettings -from grass.exceptions import CalledModuleError from photo2image.ip2i_mapdisplay import MapPanel from gui_core.wrap import ( SpinCtrl, @@ -164,7 +163,7 @@ def __init__( if p.returncode == 0: print("returncode = ", str(p.returncode)) self.Map.region = self.Map.GetRegion() - except CalledModuleError: + except Exception: pass self.SwitchEnv("source")