Skip to content

Commit 07d5d17

Browse files
authored
Merge pull request #131 from FoamyGuy/update_secrets_use
Update secrets usage
2 parents 0479457 + c964025 commit 07d5d17

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

adafruit_pyportal/network.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,8 @@ def image_converter_url(self, image_url, width, height, color_depth=16):
119119
with the given width and height. aio_username and aio_key must be
120120
set in secrets."""
121121
try:
122-
aio_username = self._secrets["aio_username"]
123-
aio_key = self._secrets["aio_key"]
122+
aio_username = self._get_setting("AIO_USERNAME")
123+
aio_key = self._get_setting("AIO_KEY")
124124
except KeyError as error:
125125
raise KeyError(
126126
"\n\nOur image converter service require a login/password to rate-limit. Please register for a free adafruit.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

Comments
 (0)