diff --git a/autoupdate_app_sources/autoupdate_app_sources.py b/autoupdate_app_sources/autoupdate_app_sources.py index b836748..2e90c48 100755 --- a/autoupdate_app_sources/autoupdate_app_sources.py +++ b/autoupdate_app_sources/autoupdate_app_sources.py @@ -566,19 +566,17 @@ def main() -> None: result_message += f"\n{'=' * 80}\nApps already with an update PR:" for app, info in apps_already.items(): result_message += f"\n- {app}" - if isinstance(info, tuple): - result_message += f" ({info[0]} -> {info[1]})" - if info[2] is not None: - result_message += f" see {info[2]}" + result_message += f" ({info[0]} -> {info[1]})" if info[1] else " (app version did not change)" + if info[2]: + result_message += f" see {info[2]}" if apps_updated: result_message += f"\n{'=' * 80}\nApps updated:" for app, info in apps_updated.items(): result_message += f"\n- {app}" - if isinstance(info, tuple): - result_message += f" ({info[0]} -> {info[1]})" - if info[2] is not None: - result_message += f" see {info[2]}" + result_message += f" ({info[0]} -> {info[1]})" if info[1] else " (app version did not change)" + if info[2]: + result_message += f" see {info[2]}" if apps_failed: result_message += f"\n{'=' * 80}\nApps failed:"