diff --git a/icecastlogparser.py b/icecastlogparser.py index aba1f4b..8a087b8 100755 --- a/icecastlogparser.py +++ b/icecastlogparser.py @@ -127,6 +127,7 @@ def getLogLineBNF(): cursor.executemany(query, values_to_insert) # Commit your changes in the database conn.commit() + values_to_insert = [] except MySQLdb.Error, e: # Rollback in case there is any error print "An error has been passed. %s" % e