Skip to content

Commit 863b0f3

Browse files
authored
Update code-fast.py
1 parent f3edbb1 commit 863b0f3

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

CircuitPython_gifio/Single/code-fast.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,11 @@
77
# Documentation:
88
# https://docs.circuitpython.org/en/latest/shared-bindings/gifio/
99
# Updated 3/29/2023
10-
import board
10+
11+
import time
1112
import struct
13+
import board
1214
import gifio
13-
import time
1415

1516
display = board.DISPLAY
1617
# Take over display to drive directly
@@ -19,7 +20,7 @@
1920

2021
try:
2122
odg = gifio.OnDiskGif('/sample.gif')
22-
except OSError: # pylint: disable=broad-except
23+
except OSError: # pylint: disable=broad-except, raise-missing-from
2324
raise Exception("sample.gif was not found\n")
2425
start = time.monotonic()
2526
next_delay = odg.next_frame() # Load the first frame

0 commit comments

Comments
 (0)