diff --git a/app/api/endpoints/subscribe.py b/app/api/endpoints/subscribe.py index 638899729..afba458f5 100644 --- a/app/api/endpoints/subscribe.py +++ b/app/api/endpoints/subscribe.py @@ -195,7 +195,7 @@ def read_subscribe( 根据订阅编号查询订阅信息 """ subscribe = Subscribe.get(db, subscribe_id) - if subscribe.sites: + if subscribe and subscribe.sites: subscribe.sites = json.loads(subscribe.sites) return subscribe