Tools: Fix flake8 version 5 warnings

This commit is contained in:
Roland Dobai
2022-08-10 09:01:57 +02:00
committed by BOT
parent 656936d32a
commit bab3830797
15 changed files with 39 additions and 39 deletions

View File

@@ -216,7 +216,7 @@ class IDFDUT(DUT.SerialDUT):
if expected_rom_class and type(inst) != expected_rom_class:
raise RuntimeError('Target not expected')
return inst.read_mac() is not None, get_target_by_rom_class(type(inst))
except(FatalError, RuntimeError):
except (FatalError, RuntimeError):
return False, None
finally:
if inst is not None: