Commit 659d9ac5 authored by Arnaud Fontaine's avatar Arnaud Fontaine

ZODB Components: Do not catch BaseException (bad practise).

parent 074e1cdb
...@@ -296,7 +296,7 @@ class ComponentMixin(PropertyRecordableMixin, Base): ...@@ -296,7 +296,7 @@ class ComponentMixin(PropertyRecordableMixin, Base):
try: try:
compile(source_code, '<string>', 'exec') compile(source_code, '<string>', 'exec')
return [], [] return [], []
except BaseException, error: except Exception, error:
if isinstance(error, SyntaxError): if isinstance(error, SyntaxError):
error = '%4d, %4d: %s' % (error.lineno, error = '%4d, %4d: %s' % (error.lineno,
error.offset, error.offset,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment