Skip to content

Commit

Permalink
#2 Remove f-string formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
sighmon committed Apr 5, 2020
1 parent 5068bb5 commit 2ff0618
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion enviroplus_exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def str_to_bool(value):
return False
elif value.lower() in {'true', 't', '1', 'yes', 'y'}:
return True
raise ValueError(f'{value} is not a valid boolean value')
raise ValueError('{} is not a valid boolean value'.format(value))


if __name__ == '__main__':
Expand Down

0 comments on commit 2ff0618

Please sign in to comment.