bug9873; fix Check & Repair for dbapi

This commit is contained in:
prculley 2017-01-07 10:33:33 -06:00 committed by Nick Hall
parent ba7eff6e67
commit 1a6db46ffa

View File

@ -381,7 +381,7 @@ class CheckIntegrity:
error_count = 0 error_count = 0
for bhandle in self.db.get_media_handles(): for bhandle in self.db.get_media_handles():
handle = bhandle.decode('utf-8') handle = bhandle.decode('utf-8')
data = self.db.media_map[bhandle] data = self.db.get_raw_media_data(handle)
if not isinstance(data[2], str) or not isinstance(data[4], str): if not isinstance(data[2], str) or not isinstance(data[4], str):
obj = self.db.get_media_from_handle(handle) obj = self.db.get_media_from_handle(handle)
if not isinstance(data[2], str): if not isinstance(data[2], str):