Browse Source

warned if import bind10_dns failed

git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1688 e5f2f494-b856-4b98-b285-d166d9295462
JINMEI Tatuya 15 years ago
parent
commit
4e6bb55ce5
1 changed files with 4 additions and 2 deletions
  1. 4 2
      src/bin/xfrin/xfrin.py.in

+ 4 - 2
src/bin/xfrin/xfrin.py.in

@@ -30,8 +30,10 @@ from optparse import OptionParser, OptionValueError
 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