Commit c1a6eb9d authored by juga's avatar juga Committed by Matt Traudt
Browse files

Revert "Exit on OSError when building circuit"

This reverts commit ede9feda3b6285c9e04a162dc393afa5e734d7e3.
An exception trying to write to log file when there is not disk
space can happen anywhere in the code
parent 1da39db2
......@@ -201,16 +201,7 @@ def measure_relay(args, conf, destinations, cb, rl, relay):
our_nick = conf['scanner']['nickname']
circ_id = cb.build_circuit(circ_fps)
if not circ_id:
log.warning('Could not build circuit involving %s', relay.nickname)
except OSError as e:
# if the error is no space left (logging to file system)
# can not log the error, so print it
# this can happen in any log call, here would happen when measuring
# new relay starts
if e.code == 28: # No space left on device
print("ERROR: " + str(e))
log.warning('Could not build circuit involving %s', relay.nickname)
msg = 'Unable to complete circuit'
return [
ResultErrorCircuit(relay, circ_fps, dest.url, our_nick, msg=msg),
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment