Skip to content

Commit ff7657b

Browse files
cmickeybCopilot
andauthored
Update common-contract/pdo/contracts/guardian/common/guardian_service.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Mic Bowman <cmickeyb@gmail.com>
1 parent 9e4a0e0 commit ff7657b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

common-contract/pdo/contracts/guardian/common/guardian_service.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,10 @@ def __post_request__(self, path, request) :
9292
return response.json()
9393

9494
except requests.HTTPError as he :
95-
logger.warn('HTTP error [%s]; %s, %s', path, he.response.status_code, he.response.text.strip())
95+
logger.warning('HTTP error [%s]; %s, %s', path, he.response.status_code, he.response.text.strip())
9696
raise MessageException(f'HTTP error [{he.response.status_code}]: {he.response.text.strip()}') from he
9797
except (requests.ConnectionError, requests.Timeout) as e :
98-
logger.warn('network error connecting to service (%s); %s', path, str(e))
98+
logger.warning('network error connecting to service (%s); %s', path, str(e))
9999
raise MessageException(str(e)) from e
100100

101101
# -----------------------------------------------------------------

0 commit comments

Comments
 (0)