From 7224970e2c0ad5e0825129c08560c9d54b0c4035 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Wed, 24 Jun 2020 10:37:08 +0200 Subject: [PATCH] =?UTF-8?q?=E2=98=82=20SWU:=20GH=20release=20name=20can=20?= =?UTF-8?q?apparently=20be=20empty?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../plugins/softwareupdate/version_checks/github_release.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/octoprint/plugins/softwareupdate/version_checks/github_release.py b/src/octoprint/plugins/softwareupdate/version_checks/github_release.py index b0aea7b01..782758340 100644 --- a/src/octoprint/plugins/softwareupdate/version_checks/github_release.py +++ b/src/octoprint/plugins/softwareupdate/version_checks/github_release.py @@ -288,8 +288,8 @@ def get_latest(target, check, custom_compare=None, online=True): commitish=commitish, force_base=force_base) - if remote_name is None: - if remote_tag is not None: + if not remote_name: + if remote_tag: remote_name = remote_tag else: remote_name = "-"