only send frame form if created

This commit is contained in:
j 2011-12-27 18:35:43 +05:30
parent 015e76619a
commit 892616dc48

View file

@ -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']):