diff options
-rw-r--r-- | src/sbin/bcfg2 | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/sbin/bcfg2 b/src/sbin/bcfg2 index 15cfcf6c8..734a16821 100644 --- a/src/sbin/bcfg2 +++ b/src/sbin/bcfg2 @@ -112,7 +112,12 @@ if __name__ == '__main__': except IOError: print "failed to write config cache file %s" % (setup['cache']) - cfg = XML(r) + try: + cfg = XML(r) + except: + print "got error from server" + raise SystemExit, 1 + if cfg.tag == 'error': print "got error from server" raise SystemExit, 1 |