Merge pull request #10 from ikreymer/dev.fix-sync

check if 'sync' method exists before calling it
This commit is contained in:
Noah Levitt 2014-10-28 13:48:53 -07:00
commit e8438dc8ad

View File

@ -689,6 +689,7 @@ class DedupDb(object):
self.db.close()
def sync(self):
if hasattr(self.db, 'sync'):
self.db.sync()
def save(self, key, response_record, offset):
@ -999,6 +1000,7 @@ class PlaybackIndexDb(object):
def sync(self):
if hasattr(self.db, 'sync'):
self.db.sync()