mirror of
https://github.com/simon987/hexlib.git
synced 2025-04-10 14:06:43 +00:00
Null check on logger
This commit is contained in:
parent
408735a926
commit
18ba0024ea
@ -188,7 +188,8 @@ class Web:
|
|||||||
self._post = post
|
self._post = post
|
||||||
|
|
||||||
def _error_callback(self, e):
|
def _error_callback(self, e):
|
||||||
self._logger.critical(f"{self._format_url(*self._current_req)}: {e}")
|
if self._logger:
|
||||||
|
self._logger.critical(f"{self._format_url(*self._current_req)}: {e}")
|
||||||
|
|
||||||
def _format_url(self, method, url, kwargs, r=None):
|
def _format_url(self, method, url, kwargs, r=None):
|
||||||
if "params" in kwargs and kwargs["params"]:
|
if "params" in kwargs and kwargs["params"]:
|
||||||
|
2
setup.py
2
setup.py
@ -2,7 +2,7 @@ from setuptools import setup
|
|||||||
|
|
||||||
setup(
|
setup(
|
||||||
name="hexlib",
|
name="hexlib",
|
||||||
version="1.64",
|
version="1.65",
|
||||||
description="Misc utility methods",
|
description="Misc utility methods",
|
||||||
author="simon987",
|
author="simon987",
|
||||||
author_email="me@simon987.net",
|
author_email="me@simon987.net",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user