Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vallettea committed Oct 27, 2014
1 parent 4f4bca3 commit 66c8046
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions check.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,17 +53,17 @@
# send back the ok message with the file attached
cmd = "mutt -s 'Voila ton scan !' -i /home/pi/nodescan/ok_msg.txt " + sender + " -a /home/pi/*.pdf < /dev/null"
os.system(cmd)
logText += "Successfully send the scaned image \n")
logText += "Successfully send the scaned image \n"
except:
logText += "Problem sending mail \n")
logText += "Problem sending mail \n"
success = False
break
else:
# there is no image to process
# send back the "no image attached" error message
cmd = "mutt -s 'Euh, elle est ou ton image ?' -i /home/pi/nodescan/error_empty_msg.txt " + sender + " < /dev/null"
os.system(cmd)
logText += "no image in mail \n")
logText += "no image in mail \n"
success = False
break

Expand Down

0 comments on commit 66c8046

Please sign in to comment.