Skip to content

Commit

Permalink
trac 14153 more precise except clause
Browse files Browse the repository at this point in the history
  • Loading branch information
Frédéric Chapoton committed Aug 5, 2017
1 parent b6077c0 commit ed1e3b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sage/structure/dynamic_class.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ def dynamic_class(name, bases, cls=None, reduction=None, doccls=None,
#assert(len(bases) > 0 )
try:
name = str(name)
except:
except UnicodeEncodeError:
pass
assert(isinstance(name, str))
# assert(cls is None or issubtype(type(cls), type) or type(cls) is classobj)
Expand Down

0 comments on commit ed1e3b5

Please sign in to comment.