Skip to content

Commit ac1cb99

Browse files
authored
Copied incorrectly
1 parent e1e5e2a commit ac1cb99

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

adafruit_pioasm.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,8 @@ def assemble(text_program):
105105
if len(instruction) > 2:
106106
try:
107107
assembled[-1] |= CONDITIONS.index(instruction[1]) << 5
108-
raise SyntaxError(f"Invalid jmp condition {instruction[1]}")
108+
except ValueError:
109+
raise SyntaxError(f"Invalid jmp condition {instruction[1]}")
109110

110111
elif instruction[0] == "wait":
111112
# instr delay p sr index

0 commit comments

Comments
 (0)