diff --git a/PyPortal_Discord/code.py b/PyPortal_Discord/code.py index 14f752f0d..6acdfec03 100644 --- a/PyPortal_Discord/code.py +++ b/PyPortal_Discord/code.py @@ -7,6 +7,7 @@ import time import board from adafruit_pyportal import PyPortal +from adafruit_portalbase.network import CONTENT_TEXT # Set up where we'll be fetching data from DATA_SOURCE = "https://img.shields.io/discord/327254708534116352.svg" @@ -22,7 +23,7 @@ while True: try: - value = pyportal.fetch() + value = pyportal.fetch(force_content_type=CONTENT_TEXT) print("Response is", value) except RuntimeError as e: print("Some error occured, retrying! -", e)