Skip to content

Commit f076c29

Browse files
committed
Fix bug with handling non-matching lines in pi_revision().
1 parent dcdf691 commit f076c29

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Adafruit_GPIO/Platform.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ def pi_revision():
6565
elif match:
6666
# Assume revision 2 if revision ends with any other 4 chars.
6767
return 2
68-
else:
69-
# Couldn't find the revision, throw an exception.
70-
raise RuntimeError('Could not determine Raspberry Pi revision.')
68+
# Couldn't find the revision, throw an exception.
69+
raise RuntimeError('Could not determine Raspberry Pi revision.')
7170

0 commit comments

Comments
 (0)