When using the Workspace API in Python (under Windows 10), the program produces errors when the Screener results in no data returned.
For example, the command
screener_output=Screener('U(IN(Equity(active,public,primary))), IN(TR.NAICSNationalIndustryCode,"325520"), \
IN(TR.GICSSectorCode,"30"), DOES_NOT_CONTAIN(TR.CommonName,"Henkel AG & Co KGaA")')
returns no results, which means that the following command
df=dl.get_data(screener_output, ['TR.CommonName','TR.CompanyCntCountryAddr'], parameters={'NULL':'Blank'})
returns the error
RDError: Error code -1 | No values to unpack
How can the get_data command in this case be made to work, when the output from a screener is empty?