summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2010-05-17 14:11:56 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2010-05-17 14:11:56 +0200
commit544c84c3d41005f1848a904477104802ffc5d635 (patch)
tree7436763dcd5f8a947e43d46e93728febda8cf79d
parentcfbecb63dd7c5a286df08b23ea803f4dc1459231 (diff)
downloadabrt-544c84c3d41005f1848a904477104802ffc5d635.tar.gz
abrt-544c84c3d41005f1848a904477104802ffc5d635.tar.xz
abrt-544c84c3d41005f1848a904477104802ffc5d635.zip
s/throw/raise/
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--src/Hooks/abrt_exception_handler.py.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Hooks/abrt_exception_handler.py.in b/src/Hooks/abrt_exception_handler.py.in
index 80bfef31..a4bc93d5 100644
--- a/src/Hooks/abrt_exception_handler.py.in
+++ b/src/Hooks/abrt_exception_handler.py.in
@@ -79,14 +79,14 @@ def handleMyException((etype, value, tb)):
if not sys.argv[0] or sys.argv[0] == "-c":
# Looks like interactive Python - abort dumping
syslog.syslog("abrt: detected unhandled Python exception")
- throw
+ raise Exception
syslog.syslog("abrt: detected unhandled Python exception in %s" % sys.argv[0])
if sys.argv[0][0] != "/":
# Relative path - can't reliably determine package
# this script belongs to - abort dumping
# TODO: check abrt.conf and abort only if
# ProcessUnpackaged = no?
- throw
+ raise Exception
elist = traceback.format_exception(etype, value, tb)
tblast = traceback.extract_tb(tb, limit=None)