Skip to content

Commit

Permalink
Improved exception handling
Browse files Browse the repository at this point in the history
  • Loading branch information
NeonDaniel committed Jun 24, 2024
1 parent 88faa70 commit 6f70d8d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions neon_utils/hana_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,4 +189,7 @@ def request_backend(endpoint: str, request_data: dict,
return resp.json()
except Exception as e:
LOG.error(e)
# Clear cached config to force re-evaluation on next request
_client_config = {}
_headers = {}
raise ServerException(f"Error response {resp.status_code}: {resp.text}")

0 comments on commit 6f70d8d

Please sign in to comment.