Fix loading some histories (thanks kaiokendev)
This commit is contained in:
parent
10c8c197bf
commit
373555c4fb
1 changed files with 4 additions and 0 deletions
|
@ -404,6 +404,10 @@ def load_persistent_history(state):
|
||||||
f = json.loads(open(p, 'rb').read())
|
f = json.loads(open(p, 'rb').read())
|
||||||
if 'internal' in f and 'visible' in f:
|
if 'internal' in f and 'visible' in f:
|
||||||
history = f
|
history = f
|
||||||
|
else:
|
||||||
|
history = {'internal': [], 'visible': []}
|
||||||
|
history['internal'] = f['data']
|
||||||
|
history['visible'] = f['data_visible']
|
||||||
else:
|
else:
|
||||||
history = {'internal': [], 'visible': []}
|
history = {'internal': [], 'visible': []}
|
||||||
if greeting != "":
|
if greeting != "":
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue