summaryrefslogtreecommitdiffstats
path: root/todo.py
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>1999-12-22 19:12:06 +0000
committerMatt Wilson <msw@redhat.com>1999-12-22 19:12:06 +0000
commit2315d55da66b46c8a83df73b77d8dc4fd569351e (patch)
treee0d60ac1d79a32d09576ef34abf8fc26f885642f /todo.py
parent80af61852858d56cd00f9cc9ba57ff955aabf3ca (diff)
downloadanaconda-2315d55da66b46c8a83df73b77d8dc4fd569351e.tar.gz
anaconda-2315d55da66b46c8a83df73b77d8dc4fd569351e.tar.xz
anaconda-2315d55da66b46c8a83df73b77d8dc4fd569351e.zip
pop up error dialog on exception from copy
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