# HG changeset patch # User paulb@localhost.localdomain # Date 1182381880 -7200 # Node ID 8662157587f20957eefc16c9eb1561956a5d1004 # Parent 010ed9472152599fc4c28f04562beb4260a99637 Added a test before trying to revoke exception types. diff -r 010ed9472152 -r 8662157587f2 simplify/annotate.py --- a/simplify/annotate.py Thu Jun 21 01:24:10 2007 +0200 +++ b/simplify/annotate.py Thu Jun 21 01:24:40 2007 +0200 @@ -1460,7 +1460,8 @@ "Revoke the given 'type' from the collection of exception types." - self.raises.remove(type) + if type in self.raises: + self.raises.remove(type) def revoke_temp_type(self, index, type):