From 2ca821020cfa9b87846685c0679431603b0fb20a Mon Sep 17 00:00:00 2001 From: Gonchik Tsymzhitov Date: Tue, 24 May 2022 22:34:56 +0300 Subject: [PATCH] Polish naming convension --- CONTRIBUTING.rst | 4 ++-- atlassian/rest_client.py | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CONTRIBUTING.rst b/CONTRIBUTING.rst index 6ef0f5a59..618586289 100644 --- a/CONTRIBUTING.rst +++ b/CONTRIBUTING.rst @@ -50,7 +50,7 @@ Before you raise a PR Create the **Commit Header** with the relevant Service Name pre-fixed, examples below, * Jira: review user module :heavy_check_mark: -* [JIRA] Issues Move to Sprint :heavy_check_mark: +* [Jira] Issues Move to Sprint :heavy_check_mark: * Confluence: update_page_property method :heavy_check_mark: An example of a commit message header, @@ -59,7 +59,7 @@ An example of a commit message header, could be better written as, -* [JIRA] Project Issues parameter addition for start and limit :heavy_check_mark: +* [Jira] Project Issues parameter addition for start and limit :heavy_check_mark: with the commit body have a detail about where/what changes introduced. diff --git a/atlassian/rest_client.py b/atlassian/rest_client.py index c2b36b09d..5918a0796 100644 --- a/atlassian/rest_client.py +++ b/atlassian/rest_client.py @@ -392,7 +392,9 @@ def raise_for_status(self, response): if 400 <= response.status_code < 600: try: j = response.json() - error_msg = "\n".join(j.get("errorMessages", list()) + [k + ": " + v for k, v in j.get("errors", dict()).items()]) + error_msg = "\n".join( + j.get("errorMessages", list()) + [k + ": " + v for k, v in j.get("errors", dict()).items()] + ) except Exception: response.raise_for_status() else: