Skip to content
This repository was archived by the owner on Jun 1, 2023. It is now read-only.

Commit 12b3ebc

Browse files
committed
f string handling
1 parent 49e9483 commit 12b3ebc

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

example/flask_rp/views.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,12 @@ def get_rp(op_identifier):
8080
except KeyError:
8181
logger.error('Unkown issuer: {} not among {}'.format(
8282
op_identifier, list(current_app.rph.hash2issuer.keys())))
83-
return make_response("Unknown hash: {}".format(op_identifier), 400)
83+
return make_response(f"Unknown OP identifier: {op_identifier}", 400)
8484
else:
8585
try:
8686
rp = current_app.rph.issuer2rp[_iss]
8787
except KeyError:
88-
return make_response("Couldn't find client for {}".format(_iss),
89-
400)
88+
return make_response(f"Couldn't find client for issuer: '{_iss}'", 400)
9089

9190
return rp
9291

0 commit comments

Comments
 (0)