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

BIND 10 source code commits bind10-changes at lists.isc.org
Wed Apr 7 22:39:21 UTC 2010


Author: jinmei
Date: Wed Apr  7 22:39:21 2010
New Revision: 1688

Log:
warned if import bind10_dns failed

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 Wed Apr  7 22:39:21 2010
@@ -30,8 +30,10 @@
 from isc.config.ccsession import *
 try:
     from bind10_dns import *
-except:
-    pass
+except ImportError as e:
+    # C++ loadable module may not be installed; even so the xfrin process
+    # must keep running, so we warn about it and move forward.
+    sys.stderr.write('[b10-xfrin] failed to import DNS module: %s\n' % str(e))
 
 # If B10_FROM_SOURCE is set in the environment, we use data files
 # from a directory relative to that, otherwise we use the ones




More information about the bind10-changes mailing list