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:
|
if ec != 0:
|
||||||
logging.error(out)
|
logging.error(out)
|
||||||
|
|
||||||
|
# TODO, why not deliver some kinda API here for controlling the
|
||||||
|
# ipfs node?
|
||||||
yield
|
yield
|
||||||
|
|
||||||
if teardown and container:
|
if teardown and container:
|
||||||
|
|
|
@ -118,7 +118,8 @@ class SkynetPinner:
|
||||||
for cid in cids:
|
for cid in cids:
|
||||||
n.start_soon(self.task_pin, cid)
|
n.start_soon(self.task_pin, cid)
|
||||||
|
|
||||||
except OSError as e:
|
except OSError:
|
||||||
|
# TODO, use `logging.exception()` here instead ??
|
||||||
traceback.print_exc()
|
traceback.print_exc()
|
||||||
|
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
|
|
Loading…
Reference in New Issue