Small cleanup of autoupdate try..except..else
This commit is contained in:
parent
292154c109
commit
6a829ebbac
1 changed files with 3 additions and 5 deletions
|
@ -479,16 +479,14 @@ def main() -> None:
|
||||||
with logging_redirect_tqdm():
|
with logging_redirect_tqdm():
|
||||||
for app in tqdm.tqdm(apps_to_run_auto_update_for(), ascii=" ·#"):
|
for app in tqdm.tqdm(apps_to_run_auto_update_for(), ascii=" ·#"):
|
||||||
try:
|
try:
|
||||||
updated = AppAutoUpdater(app).run()
|
if AppAutoUpdater(app).run():
|
||||||
except Exception as e:
|
apps_updated.append(app)
|
||||||
|
except Exception:
|
||||||
import traceback
|
import traceback
|
||||||
|
|
||||||
t = traceback.format_exc()
|
t = traceback.format_exc()
|
||||||
apps_failed[app] = t
|
apps_failed[app] = t
|
||||||
print(t)
|
print(t)
|
||||||
else:
|
|
||||||
if updated:
|
|
||||||
apps_updated.append(app)
|
|
||||||
|
|
||||||
if apps_failed:
|
if apps_failed:
|
||||||
print(f"Apps failed: {', '.join(apps_failed.keys())}")
|
print(f"Apps failed: {', '.join(apps_failed.keys())}")
|
||||||
|
|
Loading…
Reference in a new issue