Skip to content
This repository has been archived by the owner on Nov 26, 2023. It is now read-only.

Commit

Permalink
provide a message when there's an issue with a project column during …
Browse files Browse the repository at this point in the history
…project browser initialization
  • Loading branch information
kushalkolar committed Mar 1, 2021
1 parent ff83094 commit b57d3f3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion mesmerize/project_manager/project_browser/tab_area_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
from numpy import int64, float64
from copy import deepcopy
# from functools import partial
import traceback
from ...common import configuration, get_project_manager


Expand Down Expand Up @@ -276,7 +277,10 @@ def populate_tab(self):
return

for column in self.columns:
self._populate_column(column, self.dataframe[column.column_name])
try:
self._populate_column(column, self.dataframe[column.column_name])
except Exception:
raise ValueError(f"Cannot open project due to an issue with the following column: `{column.column_name}`")

def _populate_column(self, column: ColumnWidget, series: pd.Series):
column.series = series

0 comments on commit b57d3f3

Please sign in to comment.