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,7 +83,8 @@ class SubscribeOper(DbOper):
|
|||||||
更新订阅
|
更新订阅
|
||||||
"""
|
"""
|
||||||
subscribe = self.get(sid)
|
subscribe = self.get(sid)
|
||||||
subscribe.update(self._db, payload)
|
if subscribe:
|
||||||
|
subscribe.update(self._db, payload)
|
||||||
return subscribe
|
return subscribe
|
||||||
|
|
||||||
def list_by_tmdbid(self, tmdbid: int, season: int = None) -> List[Subscribe]:
|
def list_by_tmdbid(self, tmdbid: int, season: int = None) -> List[Subscribe]:
|
||||||
|
|||||||
Reference in New Issue
Block a user