From 73e162d204efdfd5c026a6a86984b9434a40736f Mon Sep 17 00:00:00 2001 From: Arohan Ajit Date: Wed, 27 Nov 2024 16:25:29 -0500 Subject: [PATCH] update --- .flake8 | 1 - gui/wxpython/startup/locdownload.py | 5 ++++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.flake8 b/.flake8 index 1e8a6f880d7..19b6e4063fd 100644 --- a/.flake8 +++ b/.flake8 @@ -40,7 +40,6 @@ per-file-ignores = gui/wxpython/mapwin/base.py: E722 gui/wxpython/mapwin/buffered.py: E722 gui/wxpython/mapwin/graphics.py: E722 - gui/wxpython/startup/locdownload.py: E722, E402 gui/wxpython/timeline/g.gui.timeline.py: E501 # Generated file gui/wxpython/menustrings.py: E501 diff --git a/gui/wxpython/startup/locdownload.py b/gui/wxpython/startup/locdownload.py index ccbeaa8fb0c..7e24724d862 100644 --- a/gui/wxpython/startup/locdownload.py +++ b/gui/wxpython/startup/locdownload.py @@ -32,10 +32,13 @@ set_gui_path() +# flake8: noqa: E402 from core.debug import Debug from core.gthread import gThread from gui_core.wrap import Button, StaticText +# flakes8: qa + # TODO: labels (and descriptions) translatable? LOCATIONS = [ @@ -93,7 +96,7 @@ def write(self, string): heigth = self._get_heigth(string) wx.CallAfter(self.out.SetLabel, string) self._resize(heigth) - except: + except wx.PyDeadObjectError: # window closed -> PyDeadObjectError pass