From d9cf1f50403631f4573b6dae553df6e4b72adf6c Mon Sep 17 00:00:00 2001 From: Florian Date: Wed, 12 Feb 2014 23:03:59 +0100 Subject: remove old exception code for ex. that does not exist anymore --- scripts/status_script.py | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'scripts') 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') -- cgit v1.2.1