Skip to content

Commit

Permalink
Narrow the warning filters to be more specific, ensuring we aren't ac…
Browse files Browse the repository at this point in the history
…cidentally ignoring other warnings
  • Loading branch information
dagardner-nv committed Dec 29, 2023
1 parent da692e8 commit f1dcd44
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion morpheus/utils/column_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

with warnings.catch_warnings():
# Ignore warning regarding tensorflow not being installed
warnings.simplefilter("ignore")
warnings.filterwarnings("ignore", message=".*No module named 'tensorflow'", category=UserWarning)
import nvtabular as nvt

import pandas as pd
Expand Down
2 changes: 1 addition & 1 deletion morpheus/utils/schema_transforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

with warnings.catch_warnings():
# Ignore warning regarding tensorflow not being installed
warnings.simplefilter("ignore")
warnings.filterwarnings("ignore", message=".*No module named 'tensorflow'", category=UserWarning)
import nvtabular as nvt

if os.environ.get("MORPHEUS_IN_SPHINX_BUILD") is None:
Expand Down

0 comments on commit f1dcd44

Please sign in to comment.