想请问下正则匹配获取商品类目信息报错
Opened this issue · 0 comments
请问还在维护吗,现在碰到一个问题
Traceback (most recent call last):
File "D:\tb\jd-assistant-main\main.py", line 16, in
asst.buy_item_in_stock(sku_ids=sku_ids, area=area, wait_all=False, stock_interval=2) # 根据商品是否有货自动下单
File "D:\tb\jd-assistant-main\util.py", line 220, in new_func
return func(self, *args, **kwargs)
File "D:\tb\jd-assistant-main\jd_assistant.py", line 1396, in buy_item_in_stock
if not self.if_item_can_be_ordered(sku_ids={sku_id: count}, area=area_id):
File "D:\tb\jd-assistant-main\util.py", line 220, in new_func
return func(self, *args, **kwargs)
File "D:\tb\jd-assistant-main\jd_assistant.py", line 608, in if_item_can_be_ordered
return self.get_single_item_stock(sku_id=sku_id, num=count, area=area_id)
File "D:\tb\jd-assistant-main\jd_assistant.py", line 438, in get_single_item_stock
cat = match.group(1)
AttributeError: 'NoneType' object has no attribute 'group'
如能回复,感激不尽