1.1 --- a/annotate.py Wed Feb 14 01:34:35 2007 +0100
1.2 +++ b/annotate.py Wed Feb 14 18:33:08 2007 +0100
1.3 @@ -501,6 +501,7 @@
1.4
1.5 invoke.invocations = invocations
1.6 self.namespace.set_types(getattr(invoke, "types", []))
1.7 + combine(self.namespace.raises, getattr(invoke, "raises", []))
1.8 return invoke
1.9
1.10 def visitInvokeBlock(self, invoke):
1.11 @@ -998,7 +999,9 @@
1.12
1.13 # Incorporate any raised exceptions.
1.14
1.15 - combine(self.namespace.raises, self.last_raises)
1.16 + if not hasattr(invoke, "raises"):
1.17 + invoke.raises = []
1.18 + combine(invoke.raises, self.last_raises)
1.19
1.20 # In order to keep global accesses working, the module namespace must be
1.21 # adjusted.