Tools: LGTM - don't catch BaseException

This commit is contained in:
Chris Hennes
2021-09-19 14:38:05 -05:00
parent 2a75451460
commit be10709785

View File

@@ -63,7 +63,7 @@ class copier:
# uncomment for debug: print ('!!! replacing',match.group(1))
expr = self.preproc(match.group(1), 'eval')
try: return str(eval(expr, self.globals, self.locals))
except: return str(self.handle(expr))
except Exception: return str(self.handle(expr))
block = self.locals['_bl']
if last is None: last = len(block)
while i<last: