Skip to content

Commit

Permalink
error handling bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhar-abbas committed Sep 25, 2020
1 parent 0643792 commit 686c8b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ROSCO_testing/ROSCO_testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ def ROSCO_Controller_Comp(self, controller_paths, testtype='light'):
elif testtype.lower() == 'heavy':
self.ROSCO_Test_heavy()
else:
ValueError('{} is an invalid testtype for controller comparison'.format(testtype))
raise ValueError('{} is an invalid testtype for controller comparison'.format(testtype))

# reset self
self.runDir = run_dir_init
Expand Down Expand Up @@ -425,7 +425,7 @@ def ROSCO_DISCON_Comp(self, DISCON_filenames, testtype='light'):
elif testtype.lower() == 'heavy':
self.ROSCO_Test_heavy(more_case_inputs=more_case_inputs)
else:
ValueError('{} is an invalid testtype for DISCON comparison'.format(testtype))
raise ValueError('{} is an invalid testtype for DISCON comparison'.format(testtype))

# reset self
self.runDir = run_dir_init
Expand Down

0 comments on commit 686c8b0

Please sign in to comment.