Skip to content

Commit 4ccb17c

Browse files
jmishra01hcpchris
andauthored
Update highcharts_core/chart.py
Co-authored-by: Chris Modzelewski <123704219+hcpchris@users.noreply.github.com>
1 parent f5ce045 commit 4ccb17c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

highcharts_core/chart.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ def to_js_literal(self,
340340
suffix = """});"""
341341
as_str = prefix + as_str + '\n' + suffix
342342

343-
if filename and validators.path(filename):
343+
if validators.path(filename, allow_empty = True):
344344
with open(filename, 'w', encoding = encoding) as file_:
345345
file_.write(as_str)
346346

0 commit comments

Comments
 (0)