Skip to content

Commit

Permalink
Merge pull request #72 from SpiNNakerManchester/pylint2.16.5
Browse files Browse the repository at this point in the history
fixed broad-exception-raised
  • Loading branch information
Christian-B committed Feb 2, 2023
2 parents e0fd07a + 5657491 commit ac5f92b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions spalloc/job.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,8 +319,7 @@ def __init__(self, *args, **kwargs):
while "pydev debugger" in str(first_line) or len(first_line) == 0:
first_line = self._keepalive_process.stdout.readline().strip()
if first_line != b"KEEPALIVE":
raise Exception("Keepalive process wrote odd line: {}".format(
first_line))
raise ValueError("Keepalive process wrote odd line: {first_line}")

def __enter__(self):
""" Convenience context manager for common case where a new job is to
Expand Down

0 comments on commit ac5f92b

Please sign in to comment.