only check for host+port values in init.

only pass auth token if auth enabled

add context manager methods to reqclient.

added logging
This commit is contained in:
onyx-and-iris
2022-10-24 22:42:16 +01:00
parent 69b0d4137a
commit 27fd86efa5
4 changed files with 63 additions and 44 deletions

View File

@@ -31,7 +31,7 @@ class Callback:
for fn in iterator:
if fn not in self._callbacks:
self._callbacks.append(fn)
except TypeError as e:
except TypeError:
if fns not in self._callbacks:
self._callbacks.append(fns)
@@ -43,7 +43,7 @@ class Callback:
for fn in iterator:
if fn in self._callbacks:
self._callbacks.remove(fn)
except TypeError as e:
except TypeError:
if fns in self._callbacks:
self._callbacks.remove(fns)