Merge lp:~achiang/laika/no-laikarc into lp:laika
Proposed by
Alex Chiang
Status: | Merged |
---|---|
Merged at revision: | 15 |
Proposed branch: | lp:~achiang/laika/no-laikarc |
Merge into: | lp:laika |
Diff against target: |
23 lines (+1/-5) 1 file modified
laika (+1/-5) |
To merge this branch: | bzr merge lp:~achiang/laika/no-laikarc |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Florian Boucault (community) | Approve | ||
Review via email: mp+40979@code.launchpad.net |
Description of the change
Handle lack of .laikarc properly
If the user does not have a ~/.laikarc, the following error is displayed:
Error: unsupported configuration file format
and laika exits.
This is improper behavior. Laika should gracefully use the built-in
defaults if the user does not have a .laikarc.
Remove the has_section check, as it causes us to exit prematurely.
Instead, rewrite the try..except block more generally, so that on
any exception (either a ConfigParser.
ConfigParser.
Fixes LP: #676112
To post a comment you must log in.
Works for me. Thanks Alex.