You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"""Generate a converted image url from the url passed in,
590
+
with the given width and height. aio_username and aio_key must be
591
+
set in secrets."""
592
+
try:
593
+
aio_username=secrets['aio_username']
594
+
aio_key=secrets['aio_key']
595
+
exceptKeyError:
596
+
raiseKeyError("\n\nOur image converter service require a login/password to rate-limit. Please register for a freeadafruit.io account and place the user/key in your secrets file under 'aio_username' and 'aio_key'")# pylint: disable=line-too-long
"""Fetch data from the url we initialized with, perfom any parsing,
588
604
and display text or graphics. This function does pretty much everything"""
@@ -654,17 +670,11 @@ def fetch(self):
654
670
gc.collect()
655
671
656
672
ifimage_url:
657
-
try:
658
-
aio_username=secrets['aio_username']
659
-
aio_key=secrets['aio_key']
660
-
exceptKeyError:
661
-
raiseKeyError("\n\nOur image converter service require a login/password to rate-limit. Please register for a freeadafruit.io account and place the user/key in your secrets file under 'aio_username' and 'aio_key'")# pylint: disable=line-too-long
0 commit comments