We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29b9f31 commit f2bf05fCopy full SHA for f2bf05f
src/arguments/update.py
@@ -1,6 +1,7 @@
1
import requests as requests
2
from termcolor import colored
3
import sys as sys
4
+import webbrowser as webbrowser
5
6
from .error import SearchError
7
@@ -21,10 +22,11 @@ def check_for_updates(self):
21
22
print(colored("The application do not have any release", "yellow"))
23
return None
24
- if data.tag_name == self.current_version:
25
+ if data["tag_name"] == self.current_version:
26
print(colored("Yeah! You have the latest version", "green"))
27
else:
28
print(colored(f"New release found - {data.tag_name}", "red"))
29
+ webbrowser.open(data["html_url"])
30
31
except Exception as exception:
32
exception = SearchError(str(exception), "Try later")
0 commit comments