ctfd_download_python icon indicating copy to clipboard operation
ctfd_download_python copied to clipboard

Update download.py

Open saunders-jake opened this issue 1 year ago • 0 comments

For the USCG openctf, there were some old challenges that were causing issues. I didn't look too closely but it seems the API was returning a json object without a "description" key sometimes, which caused the script to have a KeyError. This patch uses .get(blah, "N/A"), so that they key is created with the value "N/A" if the description key isn't sent.

saunders-jake avatar Jun 04 '24 15:06 saunders-jake