From 544c84c3d41005f1848a904477104802ffc5d635 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Mon, 17 May 2010 14:11:56 +0200 Subject: s/throw/raise/ Signed-off-by: Denys Vlasenko --- src/Hooks/abrt_exception_handler.py.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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) -- cgit