robocorp / rpaframework

Collection of open-source libraries and tools for Robotic Process Automation (RPA), designed to be used with both Robot Framework and Python
https://www.rpaframework.org/
Apache License 2.0
1.17k stars 227 forks source link

Error when using Wait for Message keyword on RPA.Exchange.Email #463

Open AllanMedeiros opened 2 years ago

AllanMedeiros commented 2 years ago

Hello! When Wait for Message is called then the error below is thrown: AttributeError: 'NoneType' object has no attribute 'inbox' image

rpaframework library version is 13.0.3 I was using an older version before where this kw was not working neither due to this issue https://github.com/robocorp/rpaframework/issues/377

mikahanninen commented 2 years ago

Can you post your complete code leading to Wait For Message and the conda.yaml content ?

AllanMedeiros commented 2 years ago

Sorry @mikahanninen, I just realized the Authorize keyword wasn't being run before Wait... But now I'm facing connectivity issues on Authorize to login on our Exchange servers, but I believe is something wrong with our network and IT is looking into it.

AllanMedeiros commented 2 years ago

Maybe would be good to throw another error message when Wait... or other keywords are executed without Authorize kw.

cmin764 commented 2 years ago

Turning self.account into a property which checks if self._account (Account()) was initialized, can fix it nicely. If there's no such object, an error raise like AuthenticationError("Not authorized to any Exchange account") would do the job.