Skip to content

Commit

Permalink
Merge pull request #131 from FoamyGuy/update_secrets_use
Browse files Browse the repository at this point in the history
Update secrets usage
  • Loading branch information
dhalbert authored Dec 14, 2023
2 parents 0479457 + c964025 commit 07d5d17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions adafruit_pyportal/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,8 @@ def image_converter_url(self, image_url, width, height, color_depth=16):
with the given width and height. aio_username and aio_key must be
set in secrets."""
try:
aio_username = self._secrets["aio_username"]
aio_key = self._secrets["aio_key"]
aio_username = self._get_setting("AIO_USERNAME")
aio_key = self._get_setting("AIO_KEY")
except KeyError as error:
raise KeyError(
"\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
Expand Down

0 comments on commit 07d5d17

Please sign in to comment.