From 81a8122c5971e922e951e10e3bd5780b034589d2 Mon Sep 17 00:00:00 2001 From: Athanasius Date: Sat, 24 Dec 2022 10:15:41 +0000 Subject: [PATCH] Indent `if err:` check after plugin dashboard invocation Adding a mypy-make-happy conditional on the call above means `err` needs to be inside that as well. --- EDMarketConnector.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/EDMarketConnector.py b/EDMarketConnector.py index d6af828f..5edae5a3 100755 --- a/EDMarketConnector.py +++ b/EDMarketConnector.py @@ -1550,10 +1550,10 @@ class AppWindow(object): if monitor.cmdr: err = plug.notify_dashboard_entry(monitor.cmdr, monitor.is_beta, entry) - if err: - self.status['text'] = err - if not config.get_int('hotkey_mute'): - hotkeymgr.play_bad() + if err: + self.status['text'] = err + if not config.get_int('hotkey_mute'): + hotkeymgr.play_bad() def plugin_error(self, event=None) -> None: """Display asynchronous error from plugin."""