Commit c4834176 authored by Sylvain Thénault's avatar Sylvain Thénault
Browse files

use typed_eid

--HG--
branch : stable
parent 276e3363b0f2
......@@ -14,7 +14,7 @@ import re
from logilab.mtconverter import TransformError
from cubicweb import UnknownEid
from cubicweb import UnknownEid, typed_eid
from cubicweb.server.pool import PreCommitOperation
from cubicweb.server.hooksmanager import Hook
from cubicweb.common.mail import parse_message_id
......@@ -38,7 +38,7 @@ class ExtractEmailInformation(PreCommitOperation):
email = self.email
# should create a Comment ?
info = self.info
origeid = int(info['eid'])
origeid = typed_eid(info['eid'])
try:
origetype = self.session.describe(origeid)[0]
except UnknownEid:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment