summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorFlorian <stayawake@lavabit.com>2014-02-12 23:03:59 +0100
committerFlorian <stayawake@lavabit.com>2014-02-12 23:03:59 +0100
commitd9cf1f50403631f4573b6dae553df6e4b72adf6c (patch)
treefbaf676f36aad5e1f5cc46812801a7fdc6dff194 /scripts
parent0633d250874153acef8a7d75895c93f23007d0b2 (diff)
remove old exception code for ex. that does not exist anymore
Diffstat (limited to 'scripts')
-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')