Skip to content

Commit

Permalink
Merge pull request #175 from hagertnl/nick-configparser-exceptions
Browse files Browse the repository at this point in the history
Added general exception to catch errors when interpreting config file
  • Loading branch information
ddietz89 authored Jun 6, 2024
2 parents cb07e63 + 3d9eccd commit e12a087
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions harness/machine_types/rgt_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -437,12 +437,9 @@ def read_input_file(self):
else:
error_message = "Test input file {} not found".format(self.test_input_filename)
raise ErrorRgtTestInputFileNotFound(error_message)
except ErrorRgtParameterReconcile as err:
except Exception as err:
self.__logger.doCriticalLogging(err.message)
sys.exit(err.message)
except ErrorRgtTestInputFileNotFound as err:
self.__logger.doCriticalLogging(err.message)
sys.exit(err.message)
exit(1)

# Private methods

Expand Down

0 comments on commit e12a087

Please sign in to comment.