diff --git a/src/graph_creators/graph_vibrations.py b/src/graph_creators/graph_vibrations.py index c33b359..ff551ee 100644 --- a/src/graph_creators/graph_vibrations.py +++ b/src/graph_creators/graph_vibrations.py @@ -622,8 +622,12 @@ def extract_angle_and_speed(logname): if match: angle = match.group(1) speed = match.group(2) + else: + raise ValueError(f'File {logname} does not match expected format. Clean your /tmp folder and start again!') except AttributeError as err: - raise ValueError(f'File {logname} does not match expected format.') from err + raise ValueError( + f'File {logname} does not match expected format. Clean your /tmp folder and start again!' + ) from err return float(angle), float(speed)