Aug-30-2018, 06:07 PM
(Aug-30-2018, 05:51 PM)j.crater Wrote: Hello, it's hard to tell what's wrong without knowing how your file looks like, or what read_file() does exactly.
Nonetheless, you can try to put a print in your for loop (print(req)) and maybe you will quickly find why (wrong format? not correctly read data?) you get the error.
Error suggest there is no 'emailid' key in the req dictionary.
Thank you for the reply!
So essentially, the argument is a report I run from a HelpDesk system which consists of three columns:
Quote:workorderid,emailid,last_tech_update
which the list is then passed to the python script.