Skip to content
Prev Previous commit
Next Next commit
Solved compatibility error with python 3+
  • Loading branch information
alvarosg committed Dec 13, 2016
commit 69f2a0440b7aeed55d4999e36f4e8b80533130f5
2 changes: 1 addition & 1 deletion lib/matplotlib/cbook.py
Original file line number Diff line number Diff line change
Expand Up @@ -2851,7 +2851,7 @@ def _get_key_params(self):

try:
func = self._funcs[str_func]
except ValueError, KeyError:
except (ValueError, KeyError):
raise ValueError("%s: invalid string. The only strings "
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"%s is an invalid string.

"recognized as functions are %s." %
(str_func, list(self._funcs)))
Expand Down