Skip to content

Commit

Permalink
Andrew/fix bug (#252)
Browse files Browse the repository at this point in the history
* Fix URI error

* Fix another silly syntax error
  • Loading branch information
ayjayt authored Feb 13, 2025
1 parent 995fa7a commit 4b0dddb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
11 changes: 3 additions & 8 deletions src/py/kaleido/_page_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,16 +55,11 @@ def __init__(self, *, plotly=None, mathjax=None, others=None):

plotly = (
(
(
Path(plotly.__file__).parent
/ "package_data"
/ "plotly.min.js"
).as_uri(),
"utf-8",
),
Path(plotly.__file__).parent / "package_data" / "plotly.min.js"
).as_uri(),
"utf-8",
)
if not plotly.is_file():
if not Path(plotly[0]).is_file():
plotly = (DEFAULT_PLOTLY, "utf-8")
except ImportError:
plotly = (DEFAULT_PLOTLY, "utf-8")
Expand Down
4 changes: 2 additions & 2 deletions src/py/kaleido/kaleido.py
Original file line number Diff line number Diff line change
Expand Up @@ -723,9 +723,9 @@ async def _loop(f):
"full_path": full_path,
"topojson": topojson,
},
error_log=error_log,
profiler=profiler,
),
error_log=error_log,
profiler=profiler,
)
t.add_done_callback(
partial(
Expand Down

0 comments on commit 4b0dddb

Please sign in to comment.