提交 63c65039 authored 作者: Frederic's avatar Frederic

Don't catch interrupt.

上级 8b1c4916
......@@ -71,7 +71,7 @@ class Validator:
try:
env.validate()
return True
except:
except Exception:
return False
env.consistent = consistent
......@@ -118,7 +118,7 @@ class ReplaceValidate(History, Validator):
raise
try:
env.validate()
except:
except Exception, e:
env.revert(chk)
raise
......@@ -155,7 +155,7 @@ class NodeFinder(dict, Bookkeeper):
print >> sys.stderr, 'OFFENDING node', type(node), type(node.op)
try:
print >> sys.stderr, 'OFFENDING node hash', hash(node.op)
except:
except Exception:
print >> sys.stderr, 'OFFENDING node not hashable'
raise e
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论