mirror of https://github.com/skygpu/skynet.git
Drop unused `as err`, suggest `logging.exception()`
parent
e829c6c569
commit
9721451d5a
|
@ -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:
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue