diff --git a/python/hangover.py b/python/hangover.py index bf923d8..1daab65 100755 --- a/python/hangover.py +++ b/python/hangover.py @@ -41,17 +41,4 @@ client.messages.create( body="Gonna work from home. " + random.choice(excuses) ) -try: - f = open('logs/file.txt', 'a') -except IOError as e: - # dir & file don't exist; create them - os.mkdir('logs') - f = open('logs/file.txt', 'a') -except Exception as e: - print e -else: - pass - -# log it -f.write("Message sent at " + strftime("%a, %d %b %Y %H:%M:%S") + "\n") -f.close() +print "Message sent at " + strftime("%a, %d %b %Y %H:%M:%S") diff --git a/python/smack_my_bitch_up.py b/python/smack_my_bitch_up.py index 398c881..0884416 100755 --- a/python/smack_my_bitch_up.py +++ b/python/smack_my_bitch_up.py @@ -42,17 +42,4 @@ client.messages.create( body="Late at work. " + random.choice(reasons) ) -try: - f = open('logs/file.txt', 'a') -except IOError as e: - # dir & file don't exist; create them - os.mkdir('logs') - f = open('logs/file.txt', 'a') -except Exception as e: - print e -else: - pass - -# log it -f.write("Message sent at " + strftime("%a, %d %b %Y %H:%M:%S") + "\n") -f.close() +print "Message sent at " + strftime("%a, %d %b %Y %H:%M:%S")