diff --git a/CHANGELOG.md b/CHANGELOG.md index e6d81a0..c3a60ac 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [Unreleased] +## [0.31.1] - 2024-10-23 + +## Fixed + +- Fixed string formatting for the "The request timed out after %(timeout)s seconds" error + ## [0.31.0] - 2024-10-16 Note: Release 0.30.5 was not done properly and was missing some code. diff --git a/cove/input/views.py b/cove/input/views.py index 5ab6585..18fec49 100644 --- a/cove/input/views.py +++ b/cove/input/views.py @@ -86,9 +86,8 @@ def data_input(request, form_classes=default_form_classes, text_file_name='test. except requests.Timeout as err: return render(request, 'error.html', context={ 'sub_title': _( - "The request timed out after %(timeout)s seconds", - getattr(settings, "REQUESTS_TIMEOUT", "indefinite"), - ), + "The request timed out after %(timeout)s seconds" + ) % getattr(settings, "REQUESTS_TIMEOUT", "indefinite"), 'link': 'index', 'link_text': _('Try Again'), 'msg': str(err) diff --git a/setup.py b/setup.py index 5bf57e0..afbb720 100644 --- a/setup.py +++ b/setup.py @@ -4,7 +4,7 @@ setup( name='libcoveweb', - version='0.31.0', + version='0.31.1', author='Open Data Services', author_email='code@opendataservices.coop', packages=find_packages(),