mirror of
				https://github.com/Eledio/superfaktura-client.git
				synced 2025-10-31 08:22:32 +01:00 
			
		
		
		
	superfaktura_api: preserve the exception context
This commit is contained in:
		| @@ -92,7 +92,7 @@ class SuperFakturaAPI: | |||||||
|             except requests.exceptions.JSONDecodeError as e: |             except requests.exceptions.JSONDecodeError as e: | ||||||
|                 raise SuperFakturaAPIException( |                 raise SuperFakturaAPIException( | ||||||
|                     f"Unable to decode response as JSON; {req.content!r}; {e}" |                     f"Unable to decode response as JSON; {req.content!r}; {e}" | ||||||
|                 ) |                 ) from e | ||||||
|         raise SuperFakturaAPIException( |         raise SuperFakturaAPIException( | ||||||
|             f"Get status code: {req.status_code}; {req.content!r}" |             f"Get status code: {req.status_code}; {req.content!r}" | ||||||
|         ) |         ) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user