summaryrefslogtreecommitdiffstats
path: root/firstaidkit
diff options
context:
space:
mode:
authorJoel Andres Granados <jgranado@redhat.com>2008-07-15 22:22:38 +0200
committerJoel Andres Granados <jgranado@redhat.com>2008-07-15 22:22:38 +0200
commit6551c3c0f3eda6397c07edc0e8b0dc8643bd2e8d (patch)
tree91dd25e419017550e97344b6222666c6a1e89d94 /firstaidkit
parent8bf3408b2ec2b39dd27df68291ae832d96f4484e (diff)
downloadfirstaidkit-6551c3c0f3eda6397c07edc0e8b0dc8643bd2e8d.tar.gz
firstaidkit-6551c3c0f3eda6397c07edc0e8b0dc8643bd2e8d.tar.xz
firstaidkit-6551c3c0f3eda6397c07edc0e8b0dc8643bd2e8d.zip
Catch the exception where the user configures a plugin that is not found.
Diffstat (limited to 'firstaidkit')
-rwxr-xr-xfirstaidkit3
1 files changed, 3 insertions, 0 deletions
diff --git a/firstaidkit b/firstaidkit
index cb37600..a32c3ea 100755
--- a/firstaidkit
+++ b/firstaidkit
@@ -22,6 +22,7 @@ from pyfirstaidkit import Tasker
from pyfirstaidkit import Config
from pyfirstaidkit import reporting
from pyfirstaidkit import initLogger
+from pyfirstaidkit.errors import InvalidPluginNameException
from pyfirstaidkit.utils import BackupException
class Flags:
@@ -332,6 +333,8 @@ 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 "