Skip to content

Commit

Permalink
Simplify json imports
Browse files Browse the repository at this point in the history
Signed-off-by: Frantisek Lachman <flachman@redhat.com>
  • Loading branch information
lachmanfrantisek committed Dec 13, 2019
1 parent f8c06e0 commit a037e78
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packit_service/worker/copr_build.py
Expand Up @@ -21,7 +21,6 @@
# SOFTWARE.
import json
import logging
from json import JSONDecodeError
from typing import Union, List, Optional

from kubernetes.client.rest import ApiException
Expand Down Expand Up @@ -351,7 +350,7 @@ def _process_openshift_error(self, ex: ApiException):
json_content = json.loads(ex.body)
formatted_json = json.dumps(json_content, indent=2)
error_message += f"HTTP response body:\n{formatted_json}\n"
except JSONDecodeError:
except json.JSONDecodeError:
error_message += f"HTTP response body: {ex.body}\n"

msg = (
Expand Down

0 comments on commit a037e78

Please sign in to comment.