mirror of
https://github.com/StuffAnThings/qbit_manage.git
synced 2025-12-10 22:09:06 +08:00
additional logic for issue
This commit is contained in:
parent
e498bd0c35
commit
4c572ae043
1 changed files with 8 additions and 1 deletions
|
|
@ -114,7 +114,14 @@ class Qbt:
|
|||
if x.url.startswith('http'):
|
||||
status = x.status
|
||||
msg = x.msg.upper()
|
||||
exception = ["DOWN", "DOWN.", "UNREACHABLE", "BAD GATEWAY", "TRACKER UNAVAILABLE"]
|
||||
exception = [
|
||||
"DOWN",
|
||||
"DOWN.",
|
||||
"UNREACHABLE",
|
||||
"(UNREACHABLE)",
|
||||
"BAD GATEWAY",
|
||||
"TRACKER UNAVAILABLE"
|
||||
]
|
||||
if x.status == 2:
|
||||
working_tracker = True
|
||||
break
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue