microsoft / AIforEarth-API-Development

This is an API Framework for AI models to be hosted locally or on the AI for Earth API Platform (https://github.com/microsoft/AIforEarth-API-Platform).
MIT License
76 stars 44 forks source link

Issue where self.tracer wasn't defined #77

Open chiroptical opened 4 years ago

chiroptical commented 4 years ago

I ran into an issue with the following code https://github.com/microsoft/AIforEarth-API-Development/blob/18b33b3bd23b2720efc8c067bad64b972735c6da/Containers/base-py/ai4e_api_tools/ai4e_service.py#L139 where self.tracer was not defined.

https://github.com/microsoft/AIforEarth-API-Development/blob/18b33b3bd23b2720efc8c067bad64b972735c6da/Containers/base-py/ai4e_api_tools/ai4e_service.py#L42-L43

Above L42, I guess you could just add self.tracer = None to prevent this. Would you like me to make the PR?