Bad, really bad exception handling.

This commit is contained in:
Klaus-Uwe Mitterer 2015-03-19 19:10:28 +01:00
parent 249a8102f2
commit a5fc8d5d6b

View file

@ -59,9 +59,13 @@ while True:
else:
continue
else:
api.update_status("@%s Das war doch schon...?" % sender, twid)
try:
api.update_status("@%s Das war doch schon...?" % sender, twid)
except Exception, e:
print e
continue
cur.execute("INSERT INTO tweets VALUES(%i,'%s','%s','',0)" % (twid,date.strftime("%Y-%m-%dT%H:%M:%S"),sender))
sql_conn.commit()