Merge pull request 'clan-cli: Fix incorrect throw on clan update' (#2588) from Qubasa/clan-core:Qubasa-main into main

This commit is contained in:
clan-bot
2024-12-10 20:20:48 +00:00

View File

@@ -252,6 +252,7 @@ class AsyncRuntime:
if task.finished and task.async_opts.check: if task.finished and task.async_opts.check:
assert task.result is not None assert task.result is not None
error = task.result.error error = task.result.error
if error is not None:
if log.isEnabledFor(logging.DEBUG): if log.isEnabledFor(logging.DEBUG):
log.error( log.error(
f"failed with error: {error}", f"failed with error: {error}",
@@ -260,7 +261,8 @@ class AsyncRuntime:
) )
else: else:
log.error( log.error(
f"failed with error: {error}", extra={"command_prefix": name} f"failed with error: {error}",
extra={"command_prefix": name},
) )
err_count += 1 err_count += 1