Skip to content

Commit

Permalink
correcting exception message
Browse files Browse the repository at this point in the history
  • Loading branch information
jonrkarr committed Mar 26, 2019
1 parent 96c9721 commit b8e0def
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions wc_utils/workbook/io.py
Expand Up @@ -276,7 +276,7 @@ def write_worksheet(self, sheet_name, data, style=None, validation=None):
if style.head_row_fill_pattern:
if style.head_row_fill_pattern == 'solid':
blank_head_format.set_pattern(1)
else: # pragma: no cover # unreachable because error already checked above
else: # pragma: no cover # unreachable because error already checked above
raise ValueError('Unsupported pattern {}'.format(style.head_row_fill_pattern))
if style.blank_head_fill_fgcolor:
blank_head_format.set_fg_color('#' + style.blank_head_fill_fgcolor)
Expand Down Expand Up @@ -362,7 +362,7 @@ def write_worksheet(self, sheet_name, data, style=None, validation=None):
if value is None or value == '':
format = blank_head_format
else:
format = head_format
format = head_format
else:
format = body_format

Expand Down Expand Up @@ -420,7 +420,7 @@ def write_worksheet(self, sheet_name, data, style=None, validation=None):
elif len(value) == 1:
value = value[0]
else:
raise ValueError('Merge range {}{}:{}{} with values {{" {} "}} can have at most 1 value'.format(
raise ValueError('Merge range {}{}:{}{} with values {{"{}"}} can have at most 1 value'.format(
get_column_letter(col_start + 1), row_start + 1,
get_column_letter(col_end + 1), row_end + 1,
'", "'.join(str(v) for v in value)))
Expand Down

0 comments on commit b8e0def

Please sign in to comment.