summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Andres Granados <jgranado@redhat.com>2008-07-15 22:23:48 +0200
committerJoel Andres Granados <jgranado@redhat.com>2008-07-15 22:23:48 +0200
commitbbefa48fd749858c80f2cd44c9f00bed75bbeb13 (patch)
tree895e662f4d1b03831986ee0b18441a672ffbf8bc
parent6551c3c0f3eda6397c07edc0e8b0dc8643bd2e8d (diff)
downloadfirstaidkit-bbefa48fd749858c80f2cd44c9f00bed75bbeb13.tar.gz
firstaidkit-bbefa48fd749858c80f2cd44c9f00bed75bbeb13.tar.xz
firstaidkit-bbefa48fd749858c80f2cd44c9f00bed75bbeb13.zip
Be a bit less apocaliptic when telling the user that we have an
unexpected exception.
-rwxr-xr-xfirstaidkit13
1 files changed, 9 insertions, 4 deletions
diff --git a/firstaidkit b/firstaidkit
index a32c3ea..f266f1f 100755
--- a/firstaidkit
+++ b/firstaidkit
@@ -333,16 +333,21 @@ if __name__=="__main__":
try:
singlerun.run()
+
except InvalidPluginNameException, ipne:
print(ipne)
+
except Exception, e:
- print("!!! Impossible happened!! The First Aid Kit crashed in "
- "very unsafe way.\n!!! Please report this to the authors "
- "along with the following message. You can create a ticket "
- "at https://fedorahosted.org/firstaidkit/newticket\n\n")
+ # This is when an unexpected exception occurs. This usally
+ # means there is a bug somewhere.
+ print("!!! The First Aid Kit crashed in very unsafe way.\n!!! "
+ "Please report this to the authors along with the "
+ "following message. You can create a ticket at "
+ "https://fedorahosted.org/firstaidkit/newticket\n\n")
Config.write(sys.stdout)
print("Description of the error:\nError message:%s\n " \
"Error class %s"% (e, e.__class__))
+
finally:
singlerun.end()