mirror of
https://github.com/aclist/dztui.git
synced 2026-11-03 16:42:13 +01:00
chore: clear errors
This commit is contained in:
1 parent
f3ad104b1b
commit
e64feac425
19 files changed
+56
-72
No files matched your search
@@ -436,18 +436,11 @@ def validate_ip(addr: str) -> Record:
|
||||
return record
|
||||
|
||||
|
||||
# TODO: do not return empty list in event of failure
|
||||
def get_rules(record: Record) -> list["DayzMod"]:
|
||||
ip = record.ip
|
||||
qport = record.qport
|
||||
#try:
|
||||
mods = dayzquery.dayz_rules((ip, qport)).mods
|
||||
return [mod for mod in mods]
|
||||
#except Exception as e:
|
||||
# logger.critical(e)
|
||||
# raise e
|
||||
# TODO: supposed to skip failing servers for highlight action
|
||||
#return []
|
||||
|
||||
|
||||
def query_by_id(addr: str, key: str, full: bool = False) -> dict[Any] | None:
|
||||
|
||||
Reference in new issue
Block a user