Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jxxghp committed Oct 19, 2023
1 parent 4739d43 commit c932d2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/api/endpoints/subscribe.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit c932d2b

Please sign in to comment.