Skip to content

Commit

Permalink
Bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
bendikrb committed Nov 6, 2023
1 parent 4fbc1bd commit 0c1c9ec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions kassalappy/utils.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
"""Kassalapp utils."""
from __future__ import annotations

from typing import Type
from http import HTTPStatus
import logging
import re

Expand Down Expand Up @@ -51,7 +49,7 @@ async def extract_response_data(

result = await response.json()

if response.status == HTTPStatus.OK:
if response.ok:
data = result.get("data")
if map_to_model:
model = path_to_model(response.url.path)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "kassalappy"
version = "0.3.0"
version = "0.4.0"
description = ""
authors = ["Bendik R. Brenne <[email protected]>"]
license = "MIT"
Expand Down

0 comments on commit 0c1c9ec

Please sign in to comment.