Skip to content

Commit 0256fc6

Browse files
committed
Return after unhandled font size warning
1 parent 60d6a3b commit 0256fc6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pandas/formats/css.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,9 @@ def size_to_pt(self, val, em_pt=None, conversions=UNIT_RATIOS):
163163
try:
164164
val = float(val)
165165
except ValueError:
166-
warnings.warn('Unhandled font size: %r' % val + unit,
166+
warnings.warn('Unhandled size: %r' % val + unit,
167167
CSSWarning)
168+
return self.size_to_pt('1!!default', conversions=conversions)
168169

169170
while unit != 'pt':
170171
if unit == 'em':

0 commit comments

Comments
 (0)