client/rhel/spacewalk-oscap/scap.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 79b25582d43c89b5625d3ed54648104862c17a0c
Author: Simon Lukasik <slukasik(a)redhat.com>
Date: Wed Jul 24 18:35:36 2013 +0200
Log exception in the file, when non XML encountered.
diff --git a/client/rhel/spacewalk-oscap/scap.py b/client/rhel/spacewalk-oscap/scap.py
index 691bd1b..9891857 100644
--- a/client/rhel/spacewalk-oscap/scap.py
+++ b/client/rhel/spacewalk-oscap/scap.py
@@ -162,7 +162,8 @@ def _assert_xml(f):
try:
xml.sax.parse(f, xml.sax.ContentHandler())
return True
- except:
+ except Exception, e:
+ log.log_exception(*sys.exc_info())
return False
finally:
f.seek(0)
Show replies by date