Skip to content

Commit 46773ee

Browse files
FIX cortex parameter: matplotlib changed error type (#321)
1 parent 1554026 commit 46773ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

surfer/viz.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -658,7 +658,7 @@ def _get_geo_params(self, cortex, alpha=1.0):
658658
try: # check if it's a non-string color specification
659659
color = colorConverter.to_rgb(cortex)
660660
geo_params = dict(color=color, opacity=alpha), False, False
661-
except ValueError:
661+
except (ValueError, TypeError):
662662
try:
663663
lut = create_color_lut(cortex)
664664
geo_params = dict(colormap="Greys", opacity=alpha,

0 commit comments

Comments
 (0)