Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 8036084

Browse files
ayjaytemilykl
andauthored
Add proper defaults to dict .get() x2
Co-authored-by: Emily KL <4672118+emilykl@users.noreply.github.com>
1 parent e8049a2 commit 8036084

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎plotly/io/_kaleido.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -385,8 +385,8 @@ def to_image(
385385
)
386386
height = (
387387
height
388-
or fig_dict.get("layout").get("height")
389-
or fig_dict.get("layout").get("template", {}).get("layout", {}).get("height")
388+
or fig_dict.get("layout", {}).get("height")
389+
or fig_dict.get("layout", {}).get("template", {}).get("layout", {}).get("height")
390390
or defaults.default_height
391391
)
392392

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /