Skip to content

Commit 88d9b33

Browse files
authored
Merge pull request #543 from jedgarpark/pyportal-twitter-stars
ValueAdd fix to twitter.py and stars.py
2 parents d9cac41 + 2d03c52 commit 88d9b33

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

PyPortal_GithubStars/stars.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
print("New star!")
4848
pyportal.play_file(cwd+"/coin.wav")
4949
last_value = value
50-
except RuntimeError as e:
50+
except (ValueError, RuntimeError) as e:
5151
print("Some error occured, retrying! -", e)
5252

5353
time.sleep(60) # wait a minute before getting again

PyPortal_TwitterFollowers/twitter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
print("New follower!")
4242
pyportal.play_file(cwd+"/coin.wav") # uncomment make a noise!
4343
last_value = value
44-
except RuntimeError as e:
44+
except (ValueError, RuntimeError) as e:
4545
print("Some error occured, retrying! -", e)
4646

4747
time.sleep(60) # wait a minute before getting again

0 commit comments

Comments
 (0)