only send frame form if created
This commit is contained in:
parent
015e76619a
commit
892616dc48
1 changed files with 1 additions and 1 deletions
|
@ -381,7 +381,7 @@ class API(ox.API):
|
|||
fname = os.path.basename(frame)
|
||||
if os.path.exists(frame):
|
||||
form.add_file('frame', fname, open(frame, 'rb'))
|
||||
r = self._json_request(self.url, form)
|
||||
r = self._json_request(self.url, form)
|
||||
|
||||
#upload video
|
||||
if os.path.exists(i['video']):
|
||||
|
|
Loading…
Reference in a new issue