mirror of
				https://github.com/Eledio/superfaktura-client.git
				synced 2025-10-31 16:11:20 +01:00 
			
		
		
		
	superfaktura_api: fix return values of get method
This commit is contained in:
		| @@ -91,8 +91,11 @@ class SuperFakturaAPI: | |||||||
|                 return req.json() |                 return req.json() | ||||||
|             except requests.exceptions.JSONDecodeError as e: |             except requests.exceptions.JSONDecodeError as e: | ||||||
|                 raise SuperFakturaAPIException( |                 raise SuperFakturaAPIException( | ||||||
|                     f"Get status code: {req.status_code}; {req.content}; {e}" |                     f"Unable to decode response as JSON; {req.content!r}; {e}" | ||||||
|                 ) |                 ) | ||||||
|  |         raise SuperFakturaAPIException( | ||||||
|  |             f"Get status code: {req.status_code}; {req.content!r}" | ||||||
|  |         ) | ||||||
|  |  | ||||||
|     def post(self, endpoint: str, data: str, timeout: int = 5) -> Dict: |     def post(self, endpoint: str, data: str, timeout: int = 5) -> Dict: | ||||||
|         """ |         """ | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user