diff options
author | Matt Wilson <msw@redhat.com> | 1999-12-22 19:12:06 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 1999-12-22 19:12:06 +0000 |
commit | 2315d55da66b46c8a83df73b77d8dc4fd569351e (patch) | |
tree | e0d60ac1d79a32d09576ef34abf8fc26f885642f /todo.py | |
parent | 80af61852858d56cd00f9cc9ba57ff955aabf3ca (diff) | |
download | anaconda-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.py | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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 |