Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Signed-off-by: Martin <[email protected]>
  • Loading branch information
Ho-Ro committed Jun 20, 2023
1 parent 9f01fbd commit 57cfb5e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
8 changes: 3 additions & 5 deletions NanoVNASaver/About.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,9 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>.

VERSION = "0.5.5-horo"
VERSION_URL = (
"https://raw.githubusercontent.com/"
"NanoVNA-Saver/nanovna-saver/master/NanoVNASaver/About.py")
VERSION_URL = "https://github.com/Ho-Ro/nanovna-saver/raw/Qt5/NanoVNASaver/About.py"

INFO_URL = "https://github.com/NanoVNA-Saver/nanovna-saver"
INFO_URL = "https://github.com/Ho-Ro/nanovna-saver"
INFO = f"""NanoVNASaver {VERSION}
Copyright (C) 2019, 2020 Rune B. Broberg
Expand All @@ -34,4 +32,4 @@
See {INFO_URL} for further details.
"""

RELEASE_URL = "https://github.com/NanoVNA-Saver/nanovna-saver"
RELEASE_URL = "https://github.com/Ho-Ro/nanovna-saver"
6 changes: 3 additions & 3 deletions NanoVNASaver/Windows/About.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,13 +117,13 @@ def findUpdates(self, automatic=False):
for line in request.urlopen(req, timeout=3):
line = line.decode("utf-8")
if line.startswith("VERSION ="):
latest_version = Version(line[8:].strip(" \"'"))
latest_version = Version(line[8:].strip("\n \"'"))
if line.startswith("RELEASE_URL ="):
latest_url = line[13:].strip(" \"'")
latest_url = line[13:].strip("\n \"'")
except error.HTTPError as e:
logger.exception(
"Checking for updates produced an HTTP exception: %s", e)
self.updateLabel.setText("Connection error.")
self.updateLabel.setText(f"{e}:\n{VERSION_URL}")
return
except TypeError as e:
logger.exception(
Expand Down

0 comments on commit 57cfb5e

Please sign in to comment.