mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-04-08 21:29:43 +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.update(self._db, payload)
|
||||
if subscribe:
|
||||
subscribe.update(self._db, payload)
|
||||
return subscribe
|
||||
|
||||
def list_by_tmdbid(self, tmdbid: int, season: int = None) -> List[Subscribe]:
|
||||
|
||||
Reference in New Issue
Block a user