Skip to content

Commit

Permalink
Bigliettaro: ridotto output subject mail
Browse files Browse the repository at this point in the history
  • Loading branch information
Gelma committed Jul 4, 2011
1 parent 993d63c commit b04d020
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions script/bigliettaro.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
sys.exit(-1)
socket.setdefaulttimeout(35) # Timeout in secondi del fetching delle pagine (vedi urllib2)

def email_errori(URL, filedb):
def email_errori(URL, filedb=''):
msg = "From: %s\r\nTo: %s\r\nSubject: %s\r\n\r\nControlla\n" % ('lugmapcheck@gelma.net', 'andrae.gelmini@gmail.com', 'Lugmap: dati non sincronizzati: '+URL+filedb+'\n') # Eventualmente da Aggiornare (vedi Guida Intergalattica alla LugMap §4.1)
try:
server = smtplib.SMTP('localhost')
Expand All @@ -51,4 +51,4 @@ def email_errori(URL, filedb):
contenuto_locale = open(filedb, 'r').read()
if contenuto_locale != contenuto_remoto:
print " * Differenza di contenuto"
email_errori(fileURL,': dati non sincronizzati')
email_errori(fileURL)

0 comments on commit b04d020

Please sign in to comment.