Skip to content

Commit e5b0227

Browse files
author
Steve Kirkland
committed
Fix linter errors
1 parent 8e7508c commit e5b0227

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

bugsnag/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,7 @@ def _create_null_logger(self) -> logging.Logger:
594594
def _initialize_endpoints(self, endpoint, session_endpoint, api_key):
595595
# Default endpoints depending on the API key, if not already set
596596
if (endpoint is None and session_endpoint is None and
597-
self.endpoint is None and self.session_endpoint is None):
597+
self.endpoint is None and self.session_endpoint is None):
598598
if _is_hub_api_key(api_key):
599599
self.endpoint = HUB_ENDPOINT
600600
self.session_endpoint = HUB_SESSIONS_ENDPOINT

bugsnag/delivery.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,10 @@ def deliver_sessions(self, config, payload: Any, options=None):
8484
"""
8585
Sends sessions to Bugsnag
8686
"""
87-
if ((config.endpoint != DEFAULT_ENDPOINT and config.session_endpoint == DEFAULT_SESSIONS_ENDPOINT) or
88-
(config.endpoint != HUB_ENDPOINT and config.session_endpoint == HUB_SESSIONS_ENDPOINT)):
87+
if ((config.endpoint != DEFAULT_ENDPOINT and
88+
config.session_endpoint == DEFAULT_SESSIONS_ENDPOINT) or
89+
(config.endpoint != HUB_ENDPOINT and
90+
config.session_endpoint == HUB_SESSIONS_ENDPOINT)):
8991
if not self.sent_session_warning:
9092
warnings.warn('The session endpoint has not been configured. '
9193
'No sessions will be sent to Bugsnag.')

0 commit comments

Comments
 (0)