From 306815a31d20746f7c8a4b30b3df83a0b9a6115d Mon Sep 17 00:00:00 2001 From: Terrtia Date: Thu, 20 Dec 2018 09:08:14 +0100 Subject: [PATCH] fix: [hiddenServices UI] fix none type --- var/www/modules/hiddenServices/Flask_hiddenServices.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/var/www/modules/hiddenServices/Flask_hiddenServices.py b/var/www/modules/hiddenServices/Flask_hiddenServices.py index 4421505d..c53c96da 100644 --- a/var/www/modules/hiddenServices/Flask_hiddenServices.py +++ b/var/www/modules/hiddenServices/Flask_hiddenServices.py @@ -200,8 +200,12 @@ def onion_domain(): # # TODO: FIXME return 404 last_check = r_serv_onion.hget('onion_metadata:{}'.format(onion_domain), 'last_check') + if last_check is None: + last_check = '********' last_check = '{}/{}/{}'.format(last_check[0:4], last_check[4:6], last_check[6:8]) first_seen = r_serv_onion.hget('onion_metadata:{}'.format(onion_domain), 'first_seen') + if first_seen is None: + first_seen = '********' first_seen = '{}/{}/{}'.format(first_seen[0:4], first_seen[4:6], first_seen[6:8]) origin_paste = r_serv_onion.hget('onion_metadata:{}'.format(onion_domain), 'paste_parent')