curl -s -H "Authorization: Client-ID MY_ID" -H "Expect: " -F "image=@out.gif" https://api.imgur.com/3/image.xml I got a more helpful error saying that the file size was too large. I'm unsure why, as my gif was well below the limit laid out here in the imgur docs - ...
gif_link =NoneifDEBUG:print("""[dankBot] [DEBUG] search="{0}" resource="{1}" No results found.""").format(search,"imgur")