mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-17 17:42:20 +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:
parent
5d1eb9e3b1
commit
81a8122c59
@ -1550,10 +1550,10 @@ class AppWindow(object):
|
|||||||
if monitor.cmdr:
|
if monitor.cmdr:
|
||||||
err = plug.notify_dashboard_entry(monitor.cmdr, monitor.is_beta, entry)
|
err = plug.notify_dashboard_entry(monitor.cmdr, monitor.is_beta, entry)
|
||||||
|
|
||||||
if err:
|
if err:
|
||||||
self.status['text'] = err
|
self.status['text'] = err
|
||||||
if not config.get_int('hotkey_mute'):
|
if not config.get_int('hotkey_mute'):
|
||||||
hotkeymgr.play_bad()
|
hotkeymgr.play_bad()
|
||||||
|
|
||||||
def plugin_error(self, event=None) -> None:
|
def plugin_error(self, event=None) -> None:
|
||||||
"""Display asynchronous error from plugin."""
|
"""Display asynchronous error from plugin."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user