summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xscripts/status_script.py11
1 files changed, 2 insertions, 9 deletions
diff --git a/scripts/status_script.py b/scripts/status_script.py
index 92d2835..7c9a8a2 100755
--- a/scripts/status_script.py
+++ b/scripts/status_script.py
@@ -35,7 +35,6 @@ class SublabStatus(object):
else:
return 'closed'
-
def tweet(status, last_change):
# Contents of the status tweet
@@ -115,16 +114,10 @@ if __name__ == '__main__':
if status == 'open' and old_status == 'closed':
save_statusfile(STATUSFILE, status)
update_css('#0f0', '#222', 'status-open.png')
- try:
- tweet('open', last_change)
- except TweetLengthException:
- print("Tweet was too long")
+ tweet('open', last_change)
elif status == 'closed' and old_status == 'open':
save_statusfile(STATUSFILE, status)
update_css('#222', '#f00', 'status-closed.png')
- try:
- tweet('closed', last_change)
- except TweetLengthException:
- print("Tweet was too long")
+ tweet('closed', last_change)
else:
update_css = ('#222', '#222', 'status-unknown.png')