Skip to content

Commit ce5343d

Browse files
committed
fix bug when no colors are available for pdbe
1 parent 1d7cb80 commit ce5343d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pyhdx/web/views.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -593,13 +593,13 @@ def _pdb_updated(self, *events):
593593
def get_color_data(self):
594594
df = self.sources["color"].get()
595595
if df is None:
596-
return None, None
596+
return None
597597
# there should be one column which matches one of the keys in the cmap otps dict
598598
matching_columns = set(df.columns) & self._cmap_opts.keys()
599599
if not matching_columns:
600600
# todo logging.getlogger etc etc
601601
print("No matching color opts were found")
602-
return None, None
602+
return None
603603

604604
qty = matching_columns.pop()
605605
opts = self._cmap_opts[qty]

0 commit comments

Comments
 (0)