2007-06-21 | paulb | raw files shortlog changelog graph | Added a test before trying to revoke exception types. | |
simplify/annotate.py (file) |
1.1 --- a/simplify/annotate.py Thu Jun 21 01:24:10 2007 +0200 1.2 +++ b/simplify/annotate.py Thu Jun 21 01:24:40 2007 +0200 1.3 @@ -1460,7 +1460,8 @@ 1.4 1.5 "Revoke the given 'type' from the collection of exception types." 1.6 1.7 - self.raises.remove(type) 1.8 + if type in self.raises: 1.9 + self.raises.remove(type) 1.10 1.11 def revoke_temp_type(self, index, type): 1.12