Commit 441a6638 authored by Likun Zhang's avatar Likun Zhang
Browse files

Warned if import bind10_dns or bind10_xfr failed.

git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1696 e5f2f494-b856-4b98-b285-d166d9295462
parent 811eea07
...@@ -32,8 +32,10 @@ from optparse import OptionParser, OptionValueError ...@@ -32,8 +32,10 @@ from optparse import OptionParser, OptionValueError
try: try:
from bind10_xfr import * from bind10_xfr import *
from bind10_dns import * from bind10_dns import *
except: except ImportError as e:
pass # C++ loadable module may not be installed; even so the xfrout process
# must keep running, so we warn about it and move forward.
sys.stderr.write('[b10-xfrout] failed to import DNS or XFR module: %s\n' % str(e))
if "B10_FROM_SOURCE" in os.environ: if "B10_FROM_SOURCE" in os.environ:
SPECFILE_PATH = os.environ["B10_FROM_SOURCE"] + "/src/bin/xfrout" SPECFILE_PATH = os.environ["B10_FROM_SOURCE"] + "/src/bin/xfrout"
......
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