Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pickledb.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def dump(self):
def _loaddb(self):
'''Load or reload the json info from the file'''
try:
self.db = json.load(open(self.loco, 'rt'))
self.db = json.load(open(self.loco, 'rt', encoding='utf-8'))
except ValueError:
if os.stat(self.loco).st_size == 0: # Error raised because file is empty
self.db = {}
Expand Down