mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-05 23:47:41 +08:00
fix(site): handle NoneType for userdata.user_level in regex search
This commit is contained in:
+1
-1
@@ -89,7 +89,7 @@ class SiteChain(ChainBase):
|
|||||||
))
|
))
|
||||||
# 低分享率警告
|
# 低分享率警告
|
||||||
if userdata.ratio and float(userdata.ratio) < 1 and not bool(
|
if userdata.ratio and float(userdata.ratio) < 1 and not bool(
|
||||||
re.search(r"(贵宾|VIP?)", userdata.user_level, re.IGNORECASE)):
|
re.search(r"(贵宾|VIP?)", userdata.user_level or "", re.IGNORECASE)):
|
||||||
self.post_message(Notification(
|
self.post_message(Notification(
|
||||||
mtype=NotificationType.SiteMessage,
|
mtype=NotificationType.SiteMessage,
|
||||||
title=f"【站点分享率低预警】",
|
title=f"【站点分享率低预警】",
|
||||||
|
|||||||
Reference in New Issue
Block a user