mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-06-06 10:23:06 +03:00
companion.py: change raising exception when pretending CAPI down
This commit is contained in:
parent
2e90a1bbe9
commit
b30b25216b
@ -567,7 +567,7 @@ class Session(object):
|
|||||||
try:
|
try:
|
||||||
logger.trace_if('capi.query', 'Trying...')
|
logger.trace_if('capi.query', 'Trying...')
|
||||||
if conf_module.capi_pretend_down:
|
if conf_module.capi_pretend_down:
|
||||||
raise ServerError(f'Pretending CAPI is down for {endpoint} endpoint')
|
raise ServerConnectionError(f'Pretending CAPI down: {endpoint}')
|
||||||
|
|
||||||
r = self.session.get(self.server + endpoint, timeout=timeout) # type: ignore
|
r = self.session.get(self.server + endpoint, timeout=timeout) # type: ignore
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user