Comment 2 for bug 1041644

Revision history for this message
Daniel Manrique (roadmr) wrote :

Somewhat related to https://bugs.launchpad.net/ubuntu/+source/checkbox/+bug/1041340. If the script is called with a non-existent file and the restore argument, it throws an exception.

How to reproduce:

/usr/share/checkbox/scripts/audio_settings restore --file=/tmp/nonexistent_file

Expected result:
- Friendly output and restored audio settings

Actual results:
- Trace as shown in the original report.

What needs to be done: The call to open on line 95 needs to be wrapped in a try block that catches IOError and takes appropriate action (outputting a warning should be fine). A failing exit code may be desirable.