system-config-kickstart: Traceback on opening a nonexistent file
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
system-config-kickstart (Ubuntu) |
Fix Released
|
Undecided
|
Colin Watson |
Bug Description
Binary package hint: system-
Description: Ubuntu karmic (development branch)
Release: 9.10
system-
Installed: 2.5.20-0ubuntu19
Candidate: 2.5.20-0ubuntu19
Version table:
*** 2.5.20-0ubuntu19 0
500 http://
100 /var/lib/
Description: When trying to run system-
Traceback (most recent call last):
File "./system-
kickstartGu
File "/home/
self.
File "/home/
self.
File "/home/
self.lines = open(file, "r").readlines()
IOError: [Errno 2] No such file or directory: 'foo.cfg'
I am attaching a patch which should handle this situation more gracefully.
I tweaked this a bit to improve the message (the file name won't reliably be at the end of the sentence in all languages, and it would be good to print the error message too). Thanks.