Skip to content

Commit

Permalink
Remove dash-bootstrap-components UserWarning filter (#566)
Browse files Browse the repository at this point in the history
  • Loading branch information
anders-kiaer authored Dec 23, 2021
1 parent 3390ec3 commit 7d386f5
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions webviz_config/plugins/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
the utility itself.
"""

import warnings

try:
# Python 3.8+
from importlib.metadata import distributions
Expand All @@ -14,16 +12,6 @@
from ._utils import load_webviz_plugins_with_metadata, PluginProjectMetaData


with warnings.catch_warnings():
# As of Sep. 30th 2021, dash-bootstrap-components on PyPI
# (https://pypi.org/project/dash-bootstrap-components/)
# did not have a new version using dash==2.0 import statements.
# Ignore warnings temporarily from that module in order to not
# confuse end users.
warnings.filterwarnings(
"ignore", category=UserWarning, module="dash_bootstrap_components._table"
)

PLUGIN_METADATA, PLUGIN_PROJECT_METADATA = load_webviz_plugins_with_metadata(
distributions(), globals()
)
PLUGIN_METADATA, PLUGIN_PROJECT_METADATA = load_webviz_plugins_with_metadata(
distributions(), globals()
)

0 comments on commit 7d386f5

Please sign in to comment.