From 56508cb97f8f567dec5bdd08940036654cf3ae75 Mon Sep 17 00:00:00 2001 From: Arohan Ajit Date: Wed, 27 Nov 2024 17:09:13 -0500 Subject: [PATCH] update --- .flake8 | 1 - gui/wxpython/mapdisp/statusbar.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.flake8 b/.flake8 index 1e8a6f880d7..b5d927ded19 100644 --- a/.flake8 +++ b/.flake8 @@ -35,7 +35,6 @@ per-file-ignores = gui/wxpython/location_wizard/wizard.py: E722 gui/wxpython/mapdisp/main.py: E722 gui/wxpython/mapdisp/test_mapdisp.py: E501 - gui/wxpython/mapdisp/statusbar.py: F841 gui/wxpython/mapswipe/g.gui.mapswipe.py: E501 gui/wxpython/mapwin/base.py: E722 gui/wxpython/mapwin/buffered.py: E722 diff --git a/gui/wxpython/mapdisp/statusbar.py b/gui/wxpython/mapdisp/statusbar.py index 8cf5c3b6ff7..ca69416af85 100644 --- a/gui/wxpython/mapdisp/statusbar.py +++ b/gui/wxpython/mapdisp/statusbar.py @@ -756,7 +756,7 @@ def Show(self): self.SetValue(e.message) # TODO: remove these excepts, they just hide errors, solve problems # differently - except TypeError as e: + except TypeError: self.SetValue("") except AttributeError: # during initialization MapFrame has no MapWindow