Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def __deliver(self, sessions):
if not sessions:
bugsnag.logger.debug("No sessions to deliver")
return
if not self.config.api_key:
bugsnag.logger.debug("Not delivering due to an invalid api_key")
return
if not self.config.should_notify:
bugsnag.logger.debug("Not delivering due to release_stages")
return
notifier_version = package_version('bugsnag') or 'unknown'
payload = {
'notifier': {
'name': Notification.NOTIFIER_NAME,
'url': Notification.NOTIFIER_URL,
'version': notifier_version
},
'device': FilterDict({
'hostname': self.config.get('hostname'),
'runtimeVersions': self.config.get('runtime_versions')
}),
'app': {
'releaseStage': self.config.get('release_stage'),
def __deliver(self, sessions):
if not sessions:
bugsnag.logger.debug("No sessions to deliver")
return
if not self.config.api_key:
bugsnag.logger.debug("Not delivering due to an invalid api_key")
return
if not self.config.should_notify:
bugsnag.logger.debug("Not delivering due to release_stages")
return
notifier_version = package_version('bugsnag') or 'unknown'
payload = {
'notifier': {
'name': Notification.NOTIFIER_NAME,
'url': Notification.NOTIFIER_URL,
def __deliver(self, sessions):
if not sessions:
bugsnag.logger.debug("No sessions to deliver")
return
if not self.config.api_key:
bugsnag.logger.debug("Not delivering due to an invalid api_key")
return
if not self.config.should_notify:
bugsnag.logger.debug("Not delivering due to release_stages")
return
notifier_version = package_version('bugsnag') or 'unknown'
payload = {
'notifier': {
'name': Notification.NOTIFIER_NAME,
'url': Notification.NOTIFIER_URL,
'version': notifier_version
},
'device': FilterDict({
'hostname': self.config.get('hostname'),