summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--targetcli/ui_root.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/targetcli/ui_root.py b/targetcli/ui_root.py
index 6f3a79b..af5554f 100644
--- a/targetcli/ui_root.py
+++ b/targetcli/ui_root.py
@@ -114,7 +114,7 @@ class UIRoot(UINode):
os.makedirs(backup_dir);
except OSError as exe:
raise ExecutionError("Cannot create backup directory [%s] %s."
- % (backup_dir, exc.strerror))
+ % (backup_dir, exe.strerror))
# Only save backups if savefile exits
if not os.path.exists(savefile):