Skip to content

Commit

Permalink
fixed 722
Browse files Browse the repository at this point in the history
  • Loading branch information
Arohan Ajit authored and Arohan Ajit committed Oct 24, 2024
1 parent 3d7b331 commit 64c2ff0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ per-file-ignores =
gui/scripts/d.wms.py: E501
gui/wxpython/image2target/g.gui.image2target.py: E501
gui/wxpython/nviz/*: E722
gui/wxpython/photo2image/*: F841, E722, E265
gui/wxpython/photo2image/g.gui.photo2image.py: E501, F841
gui/wxpython/photo2image/g.gui.photo2image.py: E501
gui/wxpython/psmap/*: E501, E722
gui/wxpython/vdigit/*: F841, E722, F405, F403
gui/wxpython/animation/g.gui.animation.py: E501
Expand Down
3 changes: 2 additions & 1 deletion gui/wxpython/photo2image/ip2i_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
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,
Expand Down Expand Up @@ -163,7 +164,7 @@ def __init__(
if p.returncode == 0:
print("returncode = ", str(p.returncode))
self.Map.region = self.Map.GetRegion()
except:
except CalledModuleError:
pass

self.SwitchEnv("source")
Expand Down

0 comments on commit 64c2ff0

Please sign in to comment.