Skip to content

Commit

Permalink
Deleted f-string (#27)
Browse files Browse the repository at this point in the history
Deleted f-string in python 2.7 script that was preventing the file
"reader.py" to run properly due to sintax error.
  • Loading branch information
tmnp19 authored Jun 12, 2024
1 parent 288da13 commit 8b0ff6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion piglot/solver/abaqus/reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ def find_case_insensitive_key(key_name, keys_list):
keys_list_upper = [key.upper() for key in keys_list]
key_name_upper = key_name.upper()
if key_name_upper not in keys_list_upper:
raise ValueError(f"{key_name} not found.")
raise ValueError("{} not found.".format(key_name))
return keys_list[keys_list_upper.index(key_name_upper)]

def main():
Expand Down

0 comments on commit 8b0ff6c

Please sign in to comment.