x4nth055/pythoncode-tutorials

Undefined variable

pasha-bolokhov opened this issue · 1 comments

.attachments().get(id=attachment_id, userId='me', messageId=msg['id']).execute()

msg is not defined in that context

Hey @pasha-bolokhov ,

Thanks for pointing out, even though it was working (it was referencing a global variable), but it's worth fixing to reference a local variable instead. I have fixed the issue, closing it.

Thanks,