Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spam scorer fail with invalid value #1377

Open
gdchamal opened this issue May 20, 2019 · 0 comments
Open

Spam scorer fail with invalid value #1377

gdchamal opened this issue May 20, 2019 · 0 comments

Comments

@gdchamal
Copy link
Member

[mq-worker-d996c9fd-5stwx] Traceback (most recent call last): 
[mq-worker-d996c9fd-5stwx]   File "/srv/caliopen/src/backend/interfaces/NATS/py.client/caliopen_nats/subscribers.py", line 46, in process_raw 
[mq-worker-d996c9fd-5stwx]     new_message = deliver.process_raw(payload['message_id']) 
[mq-worker-d996c9fd-5stwx]   File "/srv/caliopen/src/backend/interfaces/NATS/py.client/caliopen_nats/delivery.py", line 37, in process_raw 
[mq-worker-d996c9fd-5stwx]     message = self.qualifier.process_inbound(raw) 
[mq-worker-d996c9fd-5stwx]   File "/srv/caliopen/src/backend/components/py.pi/caliopen_pi/qualifiers/mail.py", line 133, in process_inbound 
[mq-worker-d996c9fd-5stwx]     extractor.process(self.user, new_message, participants) 
[mq-worker-d996c9fd-5stwx]   File "/srv/caliopen/src/backend/components/py.pi/caliopen_pi/features/mail.py", line 210, in process 
[mq-worker-d996c9fd-5stwx]     features = self._get_features() 
[mq-worker-d996c9fd-5stwx]   File "/srv/caliopen/src/backend/components/py.pi/caliopen_pi/features/mail.py", line 145, in _get_features 
[mq-worker-d996c9fd-5stwx]     features.update(self.spam_informations) 
[mq-worker-d996c9fd-5stwx]   File "/srv/caliopen/src/backend/components/py.pi/caliopen_pi/features/mail.py", line 87, in spam_informations 
[mq-worker-d996c9fd-5stwx]     spam = SpamScorer(self.message.mail) 
[mq-worker-d996c9fd-5stwx]   File "/srv/caliopen/src/backend/components/py.pi/caliopen_pi/features/helpers/spam.py", line 54, in __init__ 
[mq-worker-d996c9fd-5stwx]     self.scores = extract_mail_spam_scores(mail) 
[mq-worker-d996c9fd-5stwx]   File "/srv/caliopen/src/backend/components/py.pi/caliopen_pi/features/helpers/spam.py", line 17, in extract_mail_spam_scores 
[mq-worker-d996c9fd-5stwx]     score = float(score) 
[mq-worker-d996c9fd-5stwx] ValueError: could not convert string to float: (-0.999) ALL_TRUSTED,HTML_MESSAGE 
[mq-worker-d996c9fd-5stwx] ERROR:subscribers:deliver process failed for raw {u'message_id': u'7df3c504-7a9f-4a13-a495-fcb1d0e1b9b5', u'user_id': u'f365fc36-3401-4ee3-95cb-9c6f6078f00d', u'order': u'process_raw', u'identity_id': u'2ed4970b-75bc-496d-9842-17a69fed643b'}: None 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant