mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-08 00:46:57 +08:00
fix(subscribe): add check for None before updating subscription
This commit is contained in:
@@ -83,6 +83,7 @@ class SubscribeOper(DbOper):
|
|||||||
更新订阅
|
更新订阅
|
||||||
"""
|
"""
|
||||||
subscribe = self.get(sid)
|
subscribe = self.get(sid)
|
||||||
|
if subscribe:
|
||||||
subscribe.update(self._db, payload)
|
subscribe.update(self._db, payload)
|
||||||
return subscribe
|
return subscribe
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user