Skip to content

Commit f3edbb1

Browse files
authored
Update code-slow.py
1 parent 552d0a6 commit f3edbb1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CircuitPython_gifio/Single/code-slow.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,18 @@
44
# Documentation:
55
# https://docs.circuitpython.org/en/latest/shared-bindings/gifio/
66
# Updated 3/29/2023
7+
import time
78
import board
89
import gifio
910
import displayio
10-
import time
1111

1212
display = board.DISPLAY
1313
splash = displayio.Group()
1414
display.root_group = splash
1515

1616
try:
1717
odg = gifio.OnDiskGif('/sample.gif')
18-
except OSError: # pylint: disable=broad-except
18+
except OSError: # pylint: disable=broad-except, raise-missing-from
1919
raise Exception("sample.gif was not found\n")
2020
start = time.monotonic()
2121
next_delay = odg.next_frame() # Load the first frame

0 commit comments

Comments
 (0)