If handle.progress is None, as it commonly is for image uploads, then get_status() will return a 404, so we need to check it before calling get_status().
I tested that this works both with an image upload, where progress is None, and a video upload, where progress is non None.
Fixes #125.
If
handle.progress
isNone
, as it commonly is for image uploads, thenget_status()
will return a 404, so we need to check it before callingget_status()
.I tested that this works both with an image upload, where
progress
isNone
, and a video upload, whereprogress
is nonNone
.