Skip to content

Commit 8385779

Browse files
emmanuel-ferdmanmwouts
authored andcommitted
Fix missing exceptions
Signed-off-by: Emmanuel Ferdman <[email protected]>
1 parent 149947d commit 8385779

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/itables/javascript.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,7 @@ def check_table_id(table_id: Optional[str], kwargs, df=None) -> str:
579579
See also https://stackoverflow.com/questions/70579/html-valid-id-attribute-values
580580
"""
581581
if "tableId" in kwargs:
582-
TypeError(
582+
raise TypeError(
583583
"tableId has been deprecated, please use table_id instead",
584584
)
585585

@@ -667,7 +667,7 @@ def html_table_from_template(
667667
kwargs: DTForITablesOptions,
668668
):
669669
if "css" in kwargs:
670-
TypeError(
670+
raise TypeError(
671671
"The 'css' argument has been deprecated, see the new "
672672
"approach at https://mwouts.github.io/itables/css.html."
673673
)

0 commit comments

Comments
 (0)