Skip to content

Commit f81b048

Browse files
committed
lint
1 parent be13320 commit f81b048

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

adafruit_pyportal.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@
4848
import gc
4949
import board
5050
import busio
51-
import storage
5251
import microcontroller
5352
from digitalio import DigitalInOut
5453
import pulseio
@@ -61,6 +60,7 @@
6160
from adafruit_display_text.text_area import TextArea
6261
from adafruit_bitmap_font import bitmap_font
6362

63+
import storage
6464
import displayio
6565
import audioio
6666
import rtc
@@ -217,8 +217,8 @@ def __init__(self, *, url=None, json_path=None, regexp_path=None,
217217
self._sdcard = adafruit_sdcard.SDCard(spi, sd_cs)
218218
vfs = storage.VfsFat(self._sdcard)
219219
storage.mount(vfs, "/sd")
220-
except OSError as e:
221-
print("No SD card found:", e)
220+
except OSError as error:
221+
print("No SD card found:", error)
222222

223223
if self._debug:
224224
print("Init display")
@@ -628,8 +628,8 @@ def fetch(self):
628628
chunk_size = 512 # current bug in big SD writes -> stick to 1 block
629629
try:
630630
self.wget(image_url, filename, chunk_size=chunk_size)
631-
except OSError as e:
632-
print(e)
631+
except OSError as error:
632+
print(error)
633633
raise OSError("""\n\nNo writable filesystem found for saving datastream. Insert an SD card or set internal filesystem to be unsafe by setting 'disable_concurrent_write_protection' in the mount options in boot.py""") # pylint: disable=line-too-long
634634
self.set_background(filename)
635635
except ValueError as error:

0 commit comments

Comments
 (0)