We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0c1eb1c + 5ea8aee commit b83dd25Copy full SHA for b83dd25
PyPortal_Discord/code.py
@@ -7,6 +7,7 @@
7
import time
8
import board
9
from adafruit_pyportal import PyPortal
10
+from adafruit_portalbase.network import CONTENT_TEXT
11
12
# Set up where we'll be fetching data from
13
DATA_SOURCE = "https://img.shields.io/discord/327254708534116352.svg"
@@ -22,7 +23,7 @@
22
23
24
while True:
25
try:
- value = pyportal.fetch()
26
+ value = pyportal.fetch(force_content_type=CONTENT_TEXT)
27
print("Response is", value)
28
except RuntimeError as e:
29
print("Some error occured, retrying! -", e)
0 commit comments