Fix bug with handling non-matching lines in pi_revision().
This commit is contained in:
parent
dcdf6915d9
commit
f076c2901a
1 changed files with 2 additions and 3 deletions
|
|
@ -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.')
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue