Fix error (500) upon first connection of an account.
This commit is contained in:
parent
c31278b576
commit
ea255d84e0
1 changed files with 6 additions and 7 deletions
13
blasta.py
13
blasta.py
|
@ -225,10 +225,9 @@ class Data:
|
|||
entries_cache_node = Data.extract_iq_items_extra(iq, jabber_id)
|
||||
data_items = {node_type : entries_cache_node}
|
||||
Data.save_to_toml(filename_items, data_items)
|
||||
return ['fine', iq] # TODO Remove this line
|
||||
else:
|
||||
print('iq problem')
|
||||
breakpoint()
|
||||
print('iq problem')
|
||||
return ['error', iq]
|
||||
else:
|
||||
entries_cache = Data.open_file_toml(filename_items)
|
||||
if not node_type in entries_cache: return ['error', 'Directory "{}" is empty'. format(node_type)]
|
||||
|
@ -264,10 +263,10 @@ class Data:
|
|||
entries_iq = Data.extract_iq_items_extra(iq, jabber_id)
|
||||
entries_cache_node_new += entries_iq
|
||||
else:
|
||||
print('iq problem')
|
||||
breakpoint()
|
||||
print('iq problem')
|
||||
|
||||
# TODO
|
||||
# Handle this concern in a different fashion,
|
||||
# instead of stopping the whole operation.
|
||||
return ['error', iq]
|
||||
entries_cache_node += entries_cache_node_new
|
||||
|
||||
if node_type == 'public':
|
||||
|
|
Loading…
Reference in a new issue