diff --git a/getter.py b/getter.py index 24de8cc..0557e5d 100755 --- a/getter.py +++ b/getter.py @@ -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()