Update update.sh

This commit is contained in:
hlohaus 2025-06-14 18:29:39 +02:00
parent e64b38f4b8
commit 864e4174ac
2 changed files with 5 additions and 6 deletions

View file

@ -4,11 +4,10 @@ control_c() {
exit exit
} }
trap control_c SIGINT while :
do
while true ; do python -m etc.tool.update
python -m etc.tool.update sleep 600 | while read line ; do
sleep 600 | while read line ; do
PID=$! PID=$!
echo $line echo $line
done done

View file

@ -107,7 +107,7 @@ class LMArenaBeta(AsyncGeneratorProvider, ProviderModelMixin, AuthFileMixin):
await asyncio.sleep(1) await asyncio.sleep(1)
args = await get_args_from_nodriver(cls.url, proxy=proxy, callback=callback) args = await get_args_from_nodriver(cls.url, proxy=proxy, callback=callback)
except (RuntimeError, FileNotFoundError) as e: except (RuntimeError, FileNotFoundError) as e:
debug.log(f"Nodriver is not available: {type(e).__name__}: {e}") debug.log(f"Nodriver is not available:", e)
args = {"headers": DEFAULT_HEADERS, "cookies": {}, "impersonate": "chrome"} args = {"headers": DEFAULT_HEADERS, "cookies": {}, "impersonate": "chrome"}
else: else:
args = {"headers": DEFAULT_HEADERS, "cookies": {}, "impersonate": "chrome"} args = {"headers": DEFAULT_HEADERS, "cookies": {}, "impersonate": "chrome"}