Skip to content

Commit

Permalink
Merge pull request #4 from kpfa/master
Browse files Browse the repository at this point in the history
clear values_to_insert Bugs to Note #3
  • Loading branch information
cdgraff authored Jan 8, 2021
2 parents 6785ea9 + e5fa85f commit 7cde646
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions icecastlogparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7cde646

Please sign in to comment.