Skip to content

Commit

Permalink
Added the missing keyword raise
Browse files Browse the repository at this point in the history
  • Loading branch information
avdg81 committed Oct 21, 2023
1 parent 3aa25b9 commit ec7fe52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion applications/GeoMechanicsApplication/tests/test_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ def add_line_data_to_dictionary(line, dictionary, main_index):
(usually time series), i.e. dictionary[main_index] = {}
"""
if main_index not in dictionary.keys():
KeyError(f"The key '{main_index}' is not in the dictionary.")
raise KeyError(f"The key '{main_index}' is not in the dictionary.")
if not isinstance(dictionary[main_index], dict):
raise TypeError(f"The value for key '{main_index}' is not a dictionary.")
line_split = line.split()
Expand Down

0 comments on commit ec7fe52

Please sign in to comment.