Skip to content

Commit

Permalink
xls-report.py: don't eat all errors when reading sheet.conf
Browse files Browse the repository at this point in the history
  • Loading branch information
Roman Donchenko committed Jul 4, 2013
1 parent a2d576c commit 83fd385
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/ts/misc/xls-report.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
from __future__ import division

import ast
import errno
import fnmatch
import logging
import numbers
Expand Down Expand Up @@ -176,7 +177,8 @@ def main():
try:
with open(os.path.join(sheet_path, 'sheet.conf')) as sheet_conf_file:
sheet_conf = ast.literal_eval(sheet_conf_file.read())
except Exception:
except IOError as ioe:
if ioe.errno != errno.ENOENT: raise
sheet_conf = {}
logging.debug('no sheet.conf for %s', sheet_path)

Expand Down

0 comments on commit 83fd385

Please sign in to comment.