Commit baaf85cb authored by JINMEI Tatuya's avatar JINMEI Tatuya
Browse files

don't pass Exception objects directly to stderr.write() (via log_error()):

convert them with str() first.


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1620 e5f2f494-b856-4b98-b285-d166d9295462
parent 7568a296
......@@ -273,7 +273,7 @@ def process_xfrin(xfrin_recorder, zone_name, db_file,
master_addr, int(port), check_soa, verbose)
conn.do_xfrin(False)
except Exception as e:
log_error(e)
log_error(str(e))
xfrin_recorder.decrement(zone_name)
......@@ -464,10 +464,10 @@ if __name__ == '__main__':
except KeyboardInterrupt:
log_error("exit b10-xfrin")
except isc.cc.session.SessionError as e:
log_error(e)
log_error(str(e))
log_error('Error happened! is the command channel daemon running?')
except Exception as e:
log_error(e)
log_error(str(e))
if xfrind:
xfrind.shutdown()
......
Markdown is supported
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