File tree Expand file tree Collapse file tree 2 files changed +2
-14
lines changed Expand file tree Collapse file tree 2 files changed +2
-14
lines changed Original file line number Diff line number Diff line change 41
41
body = "Gonna work from home. " + random .choice (excuses )
42
42
)
43
43
44
- try :
45
- if not os .path .exists ('logs' ):
46
- os .mkdir ('logs' )
47
- with open ('logs/file.txt' , 'a' ) as lh :
48
- lh .write ("Message sent at " + strftime ("%a, %d %b %Y %H:%M:%S" ) + "\n " )
49
- except Exception as e :
50
- print e
44
+ print "Message sent at " + strftime ("%a, %d %b %Y %H:%M:%S" )
Original file line number Diff line number Diff line change 42
42
body = "Late at work. " + random .choice (reasons )
43
43
)
44
44
45
- try :
46
- if not os .path .exists ('logs' ):
47
- os .mkdir ('logs' )
48
- with open ('logs/file.txt' , 'a' ) as lh :
49
- lh .write ("Message sent at " + strftime ("%a, %d %b %Y %H:%M:%S" ) + "\n " )
50
- except Exception as e :
51
- print e
45
+ print "Message sent at " + strftime ("%a, %d %b %Y %H:%M:%S" )
You can’t perform that action at this time.
0 commit comments