1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-14 08:17:13 +03:00

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.
This commit is contained in:
Athanasius 2022-12-24 10:15:41 +00:00
parent 5d1eb9e3b1
commit 81a8122c59
No known key found for this signature in database
GPG Key ID: 772697E181BB2767

View File

@ -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."""