Skip to content

Commit b1f25a6

Browse files
committed
chore: removed redundant return statements from handle_health_status
1 parent e342f24 commit b1f25a6

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

ibind/client/ibkr_client.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -295,16 +295,12 @@ def handle_health_status(self) -> bool:
295295
except ExternalBrokerError as e:
296296
if "Failed to resolve 'api.ibkr.com'" in str(e):
297297
_LOGGER.error('Connection to IBKR servers failed during reauthentication. Check internet connection between IBind and \'api.ibkr.com\'')
298-
return False
299298
elif 'An attempt was made to access a socket in a way forbidden by its access permissions' in str(e):
300299
_LOGGER.error('Connection to IBKR servers blocked during reauthentication. Check that nothing is blocking connectivity of the application')
301-
return False
302300
elif e.status_code == 410 and 'gone' in str(e):
303301
_LOGGER.error(f'OAuth 410 gone: recreate a new live session token, or try a different server, eg. "1.api.ibkr.com", "2.api.ibkr.com", etc.')
304-
return False
305302
else:
306303
_LOGGER.error(f'Unknown error checking IBKR connection during reauthentication: {exception_to_string(e)}')
307-
return False
308304
except Exception as e: # pragma: no cover
309305
_LOGGER.error(f'Error reauthenticating OAuth during reauthentication: {exception_to_string(e)}')
310306
return False

0 commit comments

Comments
 (0)