mirror of
https://github.com/sotam0316/docker-py-revanced.git
synced 2026-04-25 03:48:37 +09:00
✨ Raise Error instead of exiting
This commit is contained in:
+1
-1
@@ -187,7 +187,7 @@ class Downloader(object):
|
||||
match = re.search(r"\d", main_page)
|
||||
if not match:
|
||||
logger.error("Cannot find app main page")
|
||||
sys.exit(-1)
|
||||
raise AppNotFound()
|
||||
int_version = match.start()
|
||||
extra_release = main_page.rfind("release") - 1
|
||||
version: str = main_page[int_version:extra_release]
|
||||
|
||||
Reference in New Issue
Block a user