summaryrefslogtreecommitdiffstats
path: root/todo.py
diff options
context:
space:
mode:
Diffstat (limited to 'todo.py')
-rw-r--r--todo.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/todo.py b/todo.py
index ce41270b3..fe4230695 100644
--- a/todo.py
+++ b/todo.py
@@ -346,8 +346,12 @@ class ToDo:
def writeTimezone(self):
if (self.timezone):
(timezone, asUtc, asArc) = self.timezone
- iutil.copyFile(self.instPath + "/usr/share/zoneinfo/" + timezone,
- self.instPath + "/etc/localtime")
+ try:
+ iutil.copyFile(self.instPath + "/usr/share/zoneinfo/" + timezone,
+ self.instPath + "/etc/localtime")
+ except OSError, (errno, msg):
+ self.intf.messageWindow(_("Error"),
+ _("Error copying file: %s") % msg)
else:
asUtc = 0
asArc = 0