diff options
author | Siddharth Ravikumar <sravik@bgsu.edu> | 2015-12-22 17:05:33 -0500 |
---|---|---|
committer | Siddharth Ravikumar <sravik@bgsu.edu> | 2015-12-22 17:05:33 -0500 |
commit | 091cc84f18b3214d4e94a83a011e6e85572c9884 (patch) | |
tree | dd7d6627dd39d68de942624c795350f510d95718 /combox/cbox.py | |
parent | a03dd53e7297d730a17e40587866d57b0140dec1 (diff) |
Fixed try-catch block in combox.cbox.main.
Diffstat (limited to 'combox/cbox.py')
-rw-r--r-- | combox/cbox.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/combox/cbox.py b/combox/cbox.py index a8891ac..d8775db 100644 --- a/combox/cbox.py +++ b/combox/cbox.py @@ -115,8 +115,9 @@ def main(): try: config = yaml.load(file(config_file, 'r')) - except yaml.YAMLError, exc: - log_e("Error opening configuration file: %r" % exc) + except (IOError, yaml.YAMLError) as exc: + log_e("Unable to open configuration file.") + log_e("Looks like combox is not configured yet. Exiting.") exit(1) # run combox. |