[svn] commit: r1620 - /trunk/src/bin/xfrin/xfrin.py.in

BIND 10 source code commits bind10-changes at lists.isc.org
Sat Mar 20 23:45:19 UTC 2010


Author: jinmei
Date: Sat Mar 20 23:45:19 2010
New Revision: 1620

Log:
don't pass Exception objects directly to stderr.write() (via log_error()):
convert them with str() first.

Modified:
    trunk/src/bin/xfrin/xfrin.py.in

Modified: trunk/src/bin/xfrin/xfrin.py.in
==============================================================================
--- trunk/src/bin/xfrin/xfrin.py.in (original)
+++ trunk/src/bin/xfrin/xfrin.py.in Sat Mar 20 23:45:19 2010
@@ -273,7 +273,7 @@
                            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 @@
     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()




More information about the bind10-changes mailing list