From 75bf976607685eddaaab1d5239408b8f545ce158 Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Thu, 10 Jun 2010 08:54:42 +0200 Subject: [PATCH] actions: Handle OSErrors when listing action configs. --- src/lib/backupninja/action.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/lib/backupninja/action.py b/src/lib/backupninja/action.py index 1ebc737..66fc5f3 100644 --- a/src/lib/backupninja/action.py +++ b/src/lib/backupninja/action.py @@ -33,7 +33,12 @@ def run_all_actions(opts, global_config): opts are the parsed commandline options, global_config is the parsed global configuration. """ - actions = config.list_actions(opts) + try: + actions = config.list_actions(opts) + except OSError, e: + log.critical('Unable to list actions: %s', e) + return + actions.sort() for action in actions: -- 2.30.2