Skip to content

Commit 242b417

Browse files
committed
Fix None error
1 parent 51eff29 commit 242b417

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

notebooks_jason/max_of_K_all_models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4088,7 +4088,7 @@ def texify(s: Optional[str]) -> Optional[str]:
40884088
else lgnd.legend_handles
40894089
)
40904090
for h, s in zip(lgnd_handles, new_leg_sizes):
4091-
if s is not None:
4091+
if s is not None and hasattr(h, "set_sizes"):
40924092
h.set_sizes(s)
40934093
yield fig
40944094
finally:

0 commit comments

Comments
 (0)