diff --git a/module/device/device.py b/module/device/device.py index 293726b84..20cc14f4b 100644 --- a/module/device/device.py +++ b/module/device/device.py @@ -127,8 +127,9 @@ class Device(Screenshot, Control, AppControl, Platform): if deep_get(self.config.data, "OthersLogin.OthersLogin.Enable"): if OTHERS_LOGIN_CONFIRM.appear_on(self.image): - if OthersLoginNotifyOcr.ocr(self.image) == OTHERS_LOGIN_NOTIFY_SERVER[self.config.SERVER]: - raise OthersLogin + if self.config.SERVER in OTHERS_LOGIN_NOTIFY_SERVER.keys(): + if OthersLoginNotifyOcr.ocr(self.image) == OTHERS_LOGIN_NOTIFY_SERVER[self.config.SERVER]: + raise OthersLogin return self.image