Fix bug with handling non-matching lines in pi_revision().

This commit is contained in:
Tony DiCola 2014-06-16 17:06:20 -07:00
parent dcdf6915d9
commit f076c2901a

View file

@ -65,7 +65,6 @@ def pi_revision():
elif match:
# Assume revision 2 if revision ends with any other 4 chars.
return 2
else:
# Couldn't find the revision, throw an exception.
raise RuntimeError('Could not determine Raspberry Pi revision.')
# Couldn't find the revision, throw an exception.
raise RuntimeError('Could not determine Raspberry Pi revision.')