Skip to content

Commit

Permalink
HARMONY-1752: Fix linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
indiejames committed Apr 23, 2024
1 parent e85b066 commit 0c70317
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions harmony/harmony.py
Original file line number Diff line number Diff line change
Expand Up @@ -706,7 +706,8 @@ def _params_dict_to_files(self, params: Mapping[str, Any]) -> List[Tuple[None, s
result += [(key, (None, str(value), None)) for value in values]
return result

def _get_prepared_request(self, request: BaseRequest, for_browser=False) -> requests.models.PreparedRequest:
def _get_prepared_request(
self, request: BaseRequest, for_browser=False) -> requests.models.PreparedRequest:
"""Returns a :requests.models.PreparedRequest: object for the given harmony Request
Args:
Expand Down Expand Up @@ -744,7 +745,7 @@ def _get_prepared_request(self, request: BaseRequest, for_browser=False) -> requ
headers=headers)
else:
if files:
raise Exception(f"Cannot include shapefile as URL query parameter")
raise Exception("Cannot include shapefile as URL query parameter")

r = requests.models.Request('GET',
self._submit_url(request),
Expand All @@ -759,7 +760,7 @@ def _get_prepared_request(self, request: BaseRequest, for_browser=False) -> requ

def _handle_error_response(self, response: Response):
"""Raises the appropriate exception based on the response
received from Harmony. Trys to pull out an error message
received from Harmony. Tries to pull out an error message
from a Harmony JSON response when possible.
Args:
Expand Down

0 comments on commit 0c70317

Please sign in to comment.