[python-win32] Error trying to do a EmptyFolder() (MAPI)

Sriram ET. karra.etc at gmail.com
Thu Apr 19 13:46:41 CEST 2012


On Tue, Apr 17, 2012 at 6:55 AM, Mark Hammond <skippy.hammond at gmail.com>wrote:

> On 14/04/2012 3:19 PM, Sriram ET. wrote:
>
>> I have a folder in the Root Folder of a message store that I am trying
>> to clear using EmptyFolder(). The code is as follows:
>>
>>                 folder = store.OpenEntry(eid, None, MOD_FLAG)
>>                 hr = folder.EmptyFolder(0, None, 0)
>>
>> I get the error: ' Error: unsupported operand type(s) for &: 'NoneType'
>> and 'int'
>>
>
> I'm afraid I can't explain that at all - None should be fine there and
> nothing in the MAPI support should be trying to do the & - are you sure the
> traceback points there.


I am sorry, my bad. I tried to process a non-existent error code causing
some problems. There was no issue with the routine itself.

Regards,
Sriram
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-win32/attachments/20120419/d0f12fc6/attachment.html>


More information about the python-win32 mailing list