Skip to content

Commit 688e51e

Browse files
georgkrylovjeanlego
authored andcommitted
Fix to pylint problem
The problem was vtr_flow/scripts/python_libs/vtr/util.py:469:8: W0707: Consider explicitly re-raising using the 'from' keyword (raise-missing-from) Signed-off-by: Georgiy Krylov <[email protected]>
1 parent ddfca9c commit 688e51e

File tree

1 file changed

+1
-1
lines changed
  • vtr_flow/scripts/python_libs/vtr

1 file changed

+1
-1
lines changed

vtr_flow/scripts/python_libs/vtr/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ def load_config_lines(filepath, allow_includes=True):
466466
else:
467467
config_lines.append(line)
468468
except IOError as error:
469-
raise InspectError("Error opening config file ({})".format(error))
469+
raise InspectError("Error opening config file ({})".format(error)) from error
470470

471471
return config_lines
472472

0 commit comments

Comments
 (0)