Skip to content

Commit

Permalink
bugfix: Fix ping_check enabled workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
kawamanza committed Aug 8, 2019
1 parent 0a20013 commit 66b07cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pymysqlpool/pool.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def __get_safe_conn(self, retry_count):
if self.ping_check:
now = int(time())
timeout = now
if isinstance(int, self.ping_check):
if isinstance(self.ping_check, int):
timeout = timeout - self.ping_check
if not hasattr(c, '__ping_check_timestamp'):
c.__ping_check_timestamp = now
Expand Down

0 comments on commit 66b07cd

Please sign in to comment.