pycon-rwanda / Endangered-Species-Tracker

The "Endangered Species Tracker" is a Python project aimed at raising awareness and providing information about endangered species around the world.
MIT License
4 stars 10 forks source link

formatted the return values to avoid attribute error #13

Closed roshankraveendrababu closed 1 month ago

roshankraveendrababu commented 1 month ago

8

the error that you encountered specifically the AttributeError: 'list' object has no attribute 'expandtabs' was due to gr.Markdown() trying to handle a list object when it's expecting a string. formatting the returned values as a string, converting the tuple or list into a Markdown-friendly format. this should solve the error for sure if you have any other suggestions please let me know ..