From a16a39803e3acc59747140d7df90c5ff66004116 Mon Sep 17 00:00:00 2001 From: wangwenyan Date: Thu, 8 Mar 2018 11:55:22 +0800 Subject: [PATCH] fix bug --- PriceSystem/zhuge/zhuge_consist.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/PriceSystem/zhuge/zhuge_consist.py b/PriceSystem/zhuge/zhuge_consist.py index aa7b9bc..a7cf123 100644 --- a/PriceSystem/zhuge/zhuge_consist.py +++ b/PriceSystem/zhuge/zhuge_consist.py @@ -14,6 +14,9 @@ from fangjia import timer def url_to_root(url): + if type(url) != "str": + return url + company_list = ['lianjia', 'zhuge', '5i5j', 'iwjw', 'fangdd', 'centanet', 'cityhouse', 'baixing', 'ganji', 'anjuke', '58.com'] for c in company_list: