style(API): Put multiple exceptions in one line
This commit is contained in:
parent
5ab5314899
commit
fe52d9b346
@ -164,11 +164,7 @@ class Expression(object):
|
|||||||
"""
|
"""
|
||||||
try:
|
try:
|
||||||
t = self._tree.apply_on_last_level(typing)
|
t = self._tree.apply_on_last_level(typing)
|
||||||
except TypingError:
|
except (TypingError, NotImplementedError, AttributeError):
|
||||||
return self
|
|
||||||
except NotImplementedError:
|
|
||||||
return self
|
|
||||||
except AttributeError:
|
|
||||||
return self
|
return self
|
||||||
else:
|
else:
|
||||||
return Expression(t)._typing()
|
return Expression(t)._typing()
|
||||||
|
Loading…
Reference in New Issue
Block a user