Skip to content

Commit 2dd50af

Browse files
committed
pylint errors
1 parent ddfaf04 commit 2dd50af

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

adafruit_pyportal.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -589,12 +589,12 @@ def image_converter_url(self, image_url, width, height, color_depth=16):
589589
with the given width and height. aio_username and aio_key must be
590590
set in secrets."""
591591
try:
592-
aio_username = secrets['aio_username']
593-
aio_key = secrets['aio_key']
592+
self._aio_username = secrets['aio_username']
593+
self._aio_key = secrets['aio_key']
594594
except KeyError:
595595
raise KeyError("\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
596596

597-
return IMAGE_CONVERTER_SERVICE % (aio_username, aio_key,
597+
return IMAGE_CONVERTER_SERVICE % (self._aio_username, self._aio_key,
598598
width, height,
599599
color_depth, image_url)
600600

@@ -817,4 +817,4 @@ def wrap_nicely(string, max_chars):
817817
the_line = ''+w
818818
if the_line: # last line remaining
819819
the_lines.append(the_line)
820-
return the_lines
820+
return the_lines

0 commit comments

Comments
 (0)