mirror of
https://github.com/simon987/hexlib.git
synced 2025-04-10 06:06:41 +00:00
web logging fix
This commit is contained in:
parent
ce2e5b2af6
commit
9738819428
@ -151,9 +151,9 @@ class Web:
|
||||
def _format_url(self, method, url, kwargs, r=None):
|
||||
if "params" in kwargs and kwargs["params"]:
|
||||
return "%s %s?%s <%s>" % (method, url, "&".join(f"{k}={v}" for k, v in kwargs["params"].items()),
|
||||
r.status_code if r else "ERR")
|
||||
r.status_code if r is not None else "ERR")
|
||||
else:
|
||||
return "%s %s <%s>" % (method, url, r.status_code if r else "ERR",)
|
||||
return "%s %s <%s>" % (method, url, r.status_code if r is not None else "ERR",)
|
||||
|
||||
def get(self, url, **kwargs):
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user