mirror of
https://github.com/SinTan1729/ReVancedBuilder.git
synced 2024-12-25 12:18:36 -06:00
chg: More verbose errors
This commit is contained in:
parent
af244d5a33
commit
3fa866b90e
2 changed files with 3 additions and 3 deletions
|
@ -73,7 +73,7 @@ def get_apks(appstate):
|
|||
try:
|
||||
patches = req.get('https://releases.revanced.app/patches').json()
|
||||
except req.exceptions.RequestException as e:
|
||||
err_exit(e, appstate)
|
||||
err_exit(f"Error fetching patches, {e}", appstate)
|
||||
|
||||
session = req.Session()
|
||||
session.headers.update({'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/116.0'})
|
||||
|
|
|
@ -54,7 +54,7 @@ def update_microg(appstate):
|
|||
data = req.get('https://api.github.com/repos/inotia00/VancedMicroG/releases/latest').json()['tag_name']
|
||||
latest_ver = Version(data)
|
||||
except req.exceptions.RequestException as e:
|
||||
err_exit(e, appstate)
|
||||
err_exit(f"Error fetching info about Vanced microG, {e}", appstate)
|
||||
|
||||
try:
|
||||
present_ver = Version(appstate['present_vers']['VancedMicroG'])
|
||||
|
@ -148,7 +148,7 @@ appstate['notification_config'].read('notification_config')
|
|||
try:
|
||||
tools = req.get('https://releases.revanced.app/tools').json()['tools']
|
||||
except req.exceptions.RequestException as e:
|
||||
err_exit(e, appstate)
|
||||
err_exit(f"Error fetching patch list, {e}", appstate)
|
||||
|
||||
try:
|
||||
with open('versions.json', 'r') as f:
|
||||
|
|
Loading…
Reference in a new issue