mirror of
https://github.com/aclist/dztui.git
synced 2026-10-29 22:22:52 +01:00
feat: lan button WIP
This commit is contained in:
1 parent
10037b86d8
commit
e2ec093f67
9 files changed
+120
-26
No files matched your search
@@ -14,7 +14,8 @@ logger = logging.getLogger(__name__)
|
||||
|
||||
def get_latest_release() -> str | None:
|
||||
tag = None
|
||||
for url in [GITHUB_RELEASES, CODEBERG_RELEASES]:
|
||||
# TODO: check order; github often has gateway errors
|
||||
for url in [CODEBERG_RELEASES, GITHUB_RELEASES]:
|
||||
try:
|
||||
res = requests.get(url, timeout=REQUEST_TIMEOUT)
|
||||
if res.status_code == 200:
|
||||
|
||||
Reference in new issue
Block a user