diff --git a/frappe/utils/change_log.py b/frappe/utils/change_log.py index 150342d406..cd5b36bf18 100644 --- a/frappe/utils/change_log.py +++ b/frappe/utils/change_log.py @@ -135,7 +135,7 @@ def get_app_last_commit_ref(app): def check_for_update(): updates = frappe._dict(major=[], minor=[], patch=[]) - apps = get_versions() + apps = get_versions() for app in apps: app_details = check_release_on_github(app) @@ -143,7 +143,9 @@ def check_for_update(): github_version, org_name = app_details # Get local instance's current version or the app - instance_version = Version(apps[app]['branch_version'].split(' ')[0]) + + branch_version = apps[app]['branch_version'].split(' ')[0] if apps[app].get('branch_version', '') else '' + instance_version = Version(branch_version or apps[app].get('version')) # Compare and popup update message for update_type in updates: if github_version.__dict__[update_type] > instance_version.__dict__[update_type]: @@ -224,4 +226,3 @@ def show_update_popup(): if update_message: frappe.msgprint(update_message, title=_("New updates are available"), indicator='green') cache.srem("update-user-set", user) -