Skip to content

Commit 68fa5a1

Browse files
Potential fix for pull request finding 'Empty except'
Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
1 parent 90cc5ef commit 68fa5a1

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

viewer/main.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
import mesop as me
33
import pandas as pd
44
import yaml
5+
import logging
6+
7+
logging.basicConfig(level=logging.INFO)
58

69
try:
710
import summary
@@ -13,7 +16,11 @@
1316
from . import dashboard
1417
from . import conversations
1518
except ImportError:
16-
pass
19+
# Optional modules could not be imported; continue without them.
20+
logging.warning(
21+
"Optional modules 'summary', 'dashboard', and 'conversations' "
22+
"could not be imported (absolute or relative)."
23+
)
1724

1825

1926
def df_to_config(df: pd.DataFrame) -> dict:

0 commit comments

Comments
 (0)