Drop unused `as err`, suggest `logging.exception()`

pull/48/merge
Tyler Goodlet 2025-02-03 10:48:37 -05:00
parent e829c6c569
commit 9721451d5a
2 changed files with 4 additions and 1 deletions

View File

@ -63,6 +63,8 @@ def open_ipfs_node(
if ec != 0:
logging.error(out)
# TODO, why not deliver some kinda API here for controlling the
# ipfs node?
yield
if teardown and container:

3
skynet/ipfs/pinner.py 100644 → 100755
View File

@ -118,7 +118,8 @@ class SkynetPinner:
for cid in cids:
n.start_soon(self.task_pin, cid)
except OSError as e:
except OSError:
# TODO, use `logging.exception()` here instead ??
traceback.print_exc()
except KeyboardInterrupt: