Path: LGTM - don't catch BaseException
This commit is contained in:
@@ -238,7 +238,7 @@ def processArguments(argstring):
|
||||
SHOW_EDITOR = False
|
||||
if args.no_warns:
|
||||
SKIP_WARNS = True
|
||||
except:
|
||||
except Exception:
|
||||
return False
|
||||
|
||||
return True
|
||||
|
||||
@@ -319,7 +319,7 @@ def dump(obj):
|
||||
print('==============\n', attr_text)
|
||||
if 'mm/s' in attr_text:
|
||||
print('===> metric values <===')
|
||||
except: # Insignificant errors
|
||||
except Exception: # Insignificant errors
|
||||
# print('==>', obj, attr)
|
||||
pass
|
||||
|
||||
|
||||
Reference in New Issue
Block a user