apply TRY lint

This commit is contained in:
Jörg Thalheim
2024-09-03 17:56:59 +02:00
parent 68d777166a
commit 403b9cf2cc
26 changed files with 70 additions and 49 deletions

View File

@@ -54,8 +54,8 @@ class ImplFunc(GObject.Object, Generic[P, B]):
result = GLib.SOURCE_REMOVE
try:
result = self.async_run(**data)
except Exception as e:
log.exception(e)
except Exception:
log.exception("Error in async_run")
# TODO: send error to js
return result
@@ -78,8 +78,8 @@ class MethodExecutor(threading.Thread):
def run(self) -> None:
try:
self.result = self.function(*self.args, **self.kwargs)
except Exception as e:
log.exception(e)
except Exception:
log.exception("Error in MethodExecutor")
finally:
self.finished = True