Skip to content

Commit

Permalink
Return after unhandled font size warning
Browse files Browse the repository at this point in the history
  • Loading branch information
jnothman committed Apr 9, 2017
1 parent 60d6a3b commit 0256fc6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pandas/formats/css.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,9 @@ def size_to_pt(self, val, em_pt=None, conversions=UNIT_RATIOS):
try:
val = float(val)
except ValueError:
warnings.warn('Unhandled font size: %r' % val + unit,
warnings.warn('Unhandled size: %r' % val + unit,
CSSWarning)
return self.size_to_pt('1!!default', conversions=conversions)

while unit != 'pt':
if unit == 'em':
Expand Down

0 comments on commit 0256fc6

Please sign in to comment.