From ea255d84e0508c971bbcd4a820c8d7228ec8e170 Mon Sep 17 00:00:00 2001 From: "Schimon Jehudah, Adv." Date: Thu, 5 Sep 2024 16:27:53 +0300 Subject: [PATCH] Fix error (500) upon first connection of an account. --- blasta.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/blasta.py b/blasta.py index afe48a2..9b6d445 100644 --- a/blasta.py +++ b/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':