From d2e59c935a976ca30f3d1c98f7af89bb3b6a4b81 Mon Sep 17 00:00:00 2001 From: Terrtia Date: Tue, 3 Dec 2019 10:13:15 +0100 Subject: [PATCH] fix: [Update v2.4] fix empty set --- update/v2.4/Update_domain.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/update/v2.4/Update_domain.py b/update/v2.4/Update_domain.py index 584818d8..728e4f18 100755 --- a/update/v2.4/Update_domain.py +++ b/update/v2.4/Update_domain.py @@ -56,7 +56,9 @@ if __name__ == '__main__': r_serv_onion = config_loader.get_redis_conn("ARDB_Onion") config_loader = None - nb_elem_to_update = int( r_serv_db.get('update:nb_elem_to_convert') ) + nb_elem_to_update = r_serv_db.get('update:nb_elem_to_convert') + if not nb_elem_to_update: + nb_elem_to_update = 0 while True: domain = r_serv_onion.spop('domain_update_v2.4')