Bad, really bad exception handling.
This commit is contained in:
parent
249a8102f2
commit
a5fc8d5d6b
|
@ -59,9 +59,13 @@ while True:
|
||||||
else:
|
else:
|
||||||
continue
|
continue
|
||||||
else:
|
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
|
continue
|
||||||
|
|
||||||
|
|
||||||
cur.execute("INSERT INTO tweets VALUES(%i,'%s','%s','',0)" % (twid,date.strftime("%Y-%m-%dT%H:%M:%S"),sender))
|
cur.execute("INSERT INTO tweets VALUES(%i,'%s','%s','',0)" % (twid,date.strftime("%Y-%m-%dT%H:%M:%S"),sender))
|
||||||
sql_conn.commit()
|
sql_conn.commit()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue