Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Making it an AttributeError.
Browse files Browse the repository at this point in the history
  • Loading branch information
Travis Scrimshaw committed Apr 21, 2016
1 parent 0269425 commit 9b0ef92
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/sage/combinat/root_system/coxeter_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ def degrees(self):
if self.is_irreducible():
try:
return tuple(sorted(self._gap_group.degrees.sage()))
except Exception:
except AttributeError:
return tuple(sorted(self._gap_group.ReflectionDegrees().sage()))
else:
return sum([comp.degrees() for comp in self.irreducible_components()],tuple())
Expand Down
2 changes: 1 addition & 1 deletion src/sage/combinat/root_system/reflection_group_complex.py
Original file line number Diff line number Diff line change
Expand Up @@ -952,7 +952,7 @@ def degrees(self):
if self.is_irreducible():
try:
return tuple(sorted(self._gap_group.degrees.sage()))
except Exception:
except AttributeError:
return tuple(sorted(self._gap_group.ReflectionDegrees().sage()))
else:
return sum([comp.degrees() for comp in self.irreducible_components()],tuple())
Expand Down

0 comments on commit 9b0ef92

Please sign in to comment.