Trying to work out why pipeline fails

This commit is contained in:
Frisk 2020-11-18 00:04:42 +01:00
parent 4bff2d2038
commit f15525c542
No known key found for this signature in database
GPG key ID: 213F7C15068AF8AC

View file

@ -140,6 +140,9 @@ def send_to_discord_webhook(data: Optional[DiscordMessage], metadata: DiscordMes
except requests.exceptions.ConnectionError: except requests.exceptions.ConnectionError:
logger.warning("Connection error while sending the data to a webhook") logger.warning("Connection error while sending the data to a webhook")
return 3 return 3
except requests.exceptions.MissingSchema:
logger.debug(repr(data))
sys.exit(1)
else: else:
return handle_discord_http(result.status_code, data, result) return handle_discord_http(result.status_code, data, result)