Skip to content

Commit

Permalink
0.17
Browse files Browse the repository at this point in the history
  • Loading branch information
Kensuke-Mitsuzawa committed Apr 3, 2017
1 parent e9c0db3 commit b8d303e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions knp_utils/db_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,10 +210,10 @@ def update_record(self, document_obj):
i += 1
else:
is_success = True
logger.error(msg='We wait {} times to avoid conflict, however it does NOT resolve. We record it as error.'.format(N_RETRY))
break
if i == N_RETRY:
self.db_connection.rollback()
logger.error(msg='We wait {} times to avoid conflict, however it does NOT resolve. We record it as error.'.format(N_RETRY))
return False

return True
Expand All @@ -239,10 +239,10 @@ def get_one_record(self, record_id):
else:
is_success = True
cur.close()
logger.error(msg='We wait {} times to avoid conflict, however it does NOT resolve. We record it as error.'.format(N_RETRY))
break
if i == N_RETRY:
self.db_connection.rollback()
logger.error(msg='We wait {} times to avoid conflict, however it does NOT resolve. We record it as error.'.format(N_RETRY))
return False

return DocumentObject(
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from setuptools import setup, find_packages

version = '0.16'
version = '0.17'
name = 'knp-utils'
short_description = 'Wrapper scripts for Japanese parser `KNP`'
author = 'Kensuke Mitsuzawa'
Expand Down

0 comments on commit b8d303e

Please sign in to comment.