Skip to content

Commit efe5fef

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent c901cb8 commit efe5fef

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

openlibrary/i18n/messages.pot

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1428,12 +1428,12 @@ msgid "Loan History"
14281428
msgstr ""
14291429

14301430
#: openlibrary/plugins/upstream/borrow.py
1431-
#, python-format
1432-
msgid "Unable to return %s. Please try again later or contact info@archive.org."
1431+
msgid "this book"
14331432
msgstr ""
14341433

14351434
#: openlibrary/plugins/upstream/borrow.py
1436-
msgid "this book"
1435+
#, python-format
1436+
msgid "Unable to return %s. Please try again later or contact info@archive.org."
14371437
msgstr ""
14381438

14391439
#: openlibrary/plugins/upstream/borrow.py

openlibrary/plugins/upstream/borrow.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,9 @@ def POST(self, key): # noqa: PLR0915
183183
if not user or not ia_itemname or not s3_keys:
184184
web.setcookie(config.login_cookie_name, "", expires=-1)
185185
return_path = f"{edition_redirect}/borrow?action={action}"
186-
redirect_url = f"/account/login?redirect={urllib.parse.quote(return_path, safe='')}"
186+
redirect_url = (
187+
f"/account/login?redirect={urllib.parse.quote(return_path, safe='')}"
188+
)
187189
if i._autoReadAloud is not None:
188190
redirect_url += '&_autoReadAloud=' + i._autoReadAloud
189191
raise web.seeother(redirect_url)

0 commit comments

Comments
 (0)