Merge pull request #543 from jedgarpark/pyportal-twitter-stars
ValueAdd fix to twitter.py and stars.py
This commit is contained in:
commit
88d9b336ac
2 changed files with 2 additions and 2 deletions
|
|
@ -47,7 +47,7 @@ while True:
|
|||
print("New star!")
|
||||
pyportal.play_file(cwd+"/coin.wav")
|
||||
last_value = value
|
||||
except RuntimeError as e:
|
||||
except (ValueError, RuntimeError) as e:
|
||||
print("Some error occured, retrying! -", e)
|
||||
|
||||
time.sleep(60) # wait a minute before getting again
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ while True:
|
|||
print("New follower!")
|
||||
pyportal.play_file(cwd+"/coin.wav") # uncomment make a noise!
|
||||
last_value = value
|
||||
except RuntimeError as e:
|
||||
except (ValueError, RuntimeError) as e:
|
||||
print("Some error occured, retrying! -", e)
|
||||
|
||||
time.sleep(60) # wait a minute before getting again
|
||||
|
|
|
|||
Loading…
Reference in a new issue