Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Asthestarsfalll committed Nov 25, 2024
1 parent ac65b01 commit d5cf296
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion excore/_misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def _create_table(
prefix: str = "\n",
**tabel_kwargs: Any,
) -> str:
if isinstance(contents[0], str):
if len(contents) > 0 and isinstance(contents[0], str):
contents = [(i,) for i in contents] # type: ignore
if header is None:
header = ()
Expand Down

0 comments on commit d5cf296

Please sign in to comment.