2

当我尝试使用Get Links From Email关键字时,我得到了这个 LookupError:

Open Mailbox  server=imap.googlemail.com  user=user@mail.com  password=pass ${proWelcomeMail} =    Wait for Email  recipient=${USER_EMAIL}  subject=Welcome
Open Link From Email  ${proWelcomeMail}
...
Close Mailbox

输出:

ImapLibrary . Get Links From Email ${proWelcomeMail}
LookupError: 'quoted-printable' is not a text encoding; use codecs.decode() to handle arbitrary codecs

请问有解决方法吗?

4

2 回答 2

2

您可以自己更改库的代码,因为它不是由维护者修​​复的。将文件init .py "decode('quoted-printable')" 中的第 135 行更改为 "decode('utf-8')"。

于 2019-01-28T08:10:59.503 回答
0

使用已经修复 的 fork ImapLibrary2 https://pypi.org/project/robotframework-imaplibrary2/

于 2021-01-14T19:39:30.120 回答