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
}
trap control_c SIGINT
while true ; do
python -m etc.tool.update
sleep 600 | while read line ; do
while :
do
python -m etc.tool.update
sleep 600 | while read line ; do
PID=$!
echo $line
done

View file

@ -107,7 +107,7 @@ class LMArenaBeta(AsyncGeneratorProvider, ProviderModelMixin, AuthFileMixin):
await asyncio.sleep(1)
args = await get_args_from_nodriver(cls.url, proxy=proxy, callback=callback)
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"}
else:
args = {"headers": DEFAULT_HEADERS, "cookies": {}, "impersonate": "chrome"}