Duckapple / Kat

Kattis shell for getting examples, testing and submitting.
19 stars 6 forks source link

Crashes while attempting to get problem with no attached input files #22

Closed jlndk closed 5 years ago

jlndk commented 5 years ago

Output from kat get hello

Attempting to download exercise from kattis...
Traceback (most recent call last):
  File "/usr/bin/kat", line 40, in <module>
    main()
  File "/usr/bin/kat", line 35, in main
    execCommand[command](args, options)
  File "/home/jlndk/Development/Side Projects/kat/get.py", line 6, in get
    getProblem(arg)
  File "/home/jlndk/Development/Side Projects/kat/get.py", line 20, in getProblem
    z = zipfile.ZipFile(io.BytesIO(r.content))
  File "/usr/lib/python3.6/zipfile.py", line 1131, in __init__
    self._RealGetContents()
  File "/usr/lib/python3.6/zipfile.py", line 1198, in _RealGetContents
    raise BadZipFile("File is not a zip file")
zipfile.BadZipFile: File is not a zip fil