Skip to content

Commit a0ff423

Browse files
committed
Add fix_imports=True and encoding='latin1' to pickle.load in bin/check_db for consistency with rest of codebase
1 parent c726d97 commit a0ff423

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bin/check_db

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def load_pickle(fp):
6868
try:
6969
return pickle.load(fp, fix_imports=True, encoding='latin1')
7070
except Exception as e:
71-
print('Error loading pickle file: %s' % e)
71+
print('Error loading pickle file:', e)
7272
return None
7373

7474

0 commit comments

Comments
 (0)