diff options
author | José Fonseca <jfonseca@vmware.com> | 2014-06-20 11:20:53 +0100 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2014-06-24 16:30:34 +0100 |
commit | d9a2b264010c048a843394f87e9f75e3bb68d0a6 (patch) | |
tree | 93c4d97a85fa3b573cdf77f65a0f5b49441b5e36 /scripts | |
parent | c5dd5032cdbff0b07ada55bf2ee0822c99ca82e4 (diff) |
unpickle: Support interrupting parsing.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/unpickle.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/scripts/unpickle.py b/scripts/unpickle.py index edd5af7f..a561bf69 100755 --- a/scripts/unpickle.py +++ b/scripts/unpickle.py @@ -223,8 +223,12 @@ class Unpickler: return False else: call = self.callFactory(callTuple) - self.handleCall(call) - return True + try: + self.handleCall(call) + except StopIteration: + return False + else: + return True def handleCall(self, call): pass |