mirror of
https://github.com/aclist/dztui.git
synced 2026-08-28 10:47:15 +02:00
fix: test github endpoitn first
This commit is contained in:
parent
716eaa187c
commit
9a96711dac
@ -15,7 +15,7 @@ logger = logging.getLogger(__name__)
|
||||
def get_latest_release() -> str | None:
|
||||
tag = None
|
||||
# TODO: check order; github often has gateway errors
|
||||
for url in [CODEBERG_RELEASES, GITHUB_RELEASES]:
|
||||
for url in [GITHUB_RELEASES, CODEBERG_RELEASES]:
|
||||
try:
|
||||
res = requests.get(url, timeout=REQUEST_TIMEOUT)
|
||||
if res.status_code == 200:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user