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