From 892616dc48d154f48bb1cc4a4cfa8dfc99ed0be1 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Tue, 27 Dec 2011 18:35:43 +0530 Subject: [PATCH] only send frame form if created --- pandora_client/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora_client/__init__.py b/pandora_client/__init__.py index 18be115..7ff123a 100644 --- a/pandora_client/__init__.py +++ b/pandora_client/__init__.py @@ -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']):