Skip to content

Commit 2ae412e

Browse files
committed
Merge branch 'main' into develop
2 parents d7d9ec6 + e8fa72f commit 2ae412e

File tree

7 files changed

+13
-7
lines changed

7 files changed

+13
-7
lines changed

CHANGES.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Change log for CommonPy
22

3+
## Version 1.13.0
4+
5+
Changes in this release:
6+
* HTTP code 422 is now more accurately returned as a `ServiceFailure` error instead of a `NetworkFailure`.
7+
8+
39
## Version 1.12.4
410

511
Changes in this release:

CITATION.cff

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ cff-version: "1.1.0"
1010
message: "If you use this software, please cite it using these metadata."
1111
repository-code: "https://github.com/caltechlibrary/commonpy"
1212
title: "CommonPy: assortment of Python helper functions and utility classes"
13-
date-released: 2023-04-21
14-
version: "1.12.4"
13+
date-released: 2023-05-02
14+
version: "1.13.0"
1515
doi: 10.22002/20217
1616
keywords:
1717
- Python

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This is a collection of common utility functions and classes that we at the Calt
66
[![Latest release](https://img.shields.io/github/v/release/caltechlibrary/commonpy.svg?style=flat-square&color=b44e88&label=Latest%20release)](https://github.com/caltechlibrary/commonpy/releases)
77
[![License](https://img.shields.io/badge/License-BSD%203--Clause-blue.svg?style=flat-square)](https://choosealicense.com/licenses/bsd-3-clause)
88
[![Python](https://img.shields.io/badge/Python-3.6+-brightgreen.svg?style=flat-square)](http://shields.io)
9-
[![PyPI](https://img.shields.io/pypi/v/commonpy.svg?style=flat-square&color=orange)](https://pypi.org/project/commonpy/)
9+
[![PyPI](https://img.shields.io/pypi/v/commonpy.svg?style=flat-square&color=orange&label=PyPI)](https://pypi.org/project/commonpy/)
1010

1111
Table of contents
1212
-----------------

codemeta.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"codeRepository": "https://github.com/caltechlibrary/commonpy",
77
"issueTracker": "https://github.com/caltechlibrary/commonpy/issues",
88
"license": "https://github.com/caltechlibrary/commonpy/blob/master/LICENSE",
9-
"version": "1.12.4",
9+
"version": "1.13.0",
1010
"author": [
1111
{
1212
"@type": "Person",

commonpy/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
# | by the Makefile. Manual changes to these values will be lost. |
2222
# ╰────────────────────── Notice ── Notice ── Notice ─────────────────────╯
2323

24-
__version__ = '1.12.4'
24+
__version__ = '1.13.0'
2525
__description__ = 'Assortment of Python helper functions and utility classes'
2626
__url__ = 'https://github.com/caltechlibrary/commonpy'
2727
__author__ = 'Michael Hucka'

commonpy/network_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ def addurl(text):
378378
raise NoContent(addurl('No content found'))
379379
elif code in [405, 406, 409, 411, 412, 414, 417, 428, 431, 505, 510]:
380380
raise InternalError(addurl(f'Server returned code {code}'))
381-
elif code in [415, 416]:
381+
elif code in [415, 416, 422]:
382382
raise ServiceFailure(addurl('Server rejected the request'))
383383
elif code == 429:
384384
raise RateLimitExceeded('Server blocking further requests due to rate limits')

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
[metadata]
1010
name = commonpy
11-
version = 1.12.4
11+
version = 1.13.0
1212
description = Assortment of Python helper functions and utility classes
1313
author = Michael Hucka
1414
author_email = mhucka@caltech.edu

0 commit comments

Comments
 (0)