From 239104c2a38f3f17f3a3527e1ddc15e7b804fc02 Mon Sep 17 00:00:00 2001 From: tom Date: Mon, 21 Jul 2014 17:01:30 +0100 Subject: [PATCH] Create valid path if no api.format specified --- instagram/bind.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/instagram/bind.py b/instagram/bind.py index 85214e90..5150526f 100644 --- a/instagram/bind.py +++ b/instagram/bind.py @@ -97,7 +97,11 @@ def _build_path(self): del self.parameters[name] self.path = self.path.replace(variable, value) - self.path = self.path + '.%s' % self.api.format + + if self.api.format: + self.path = self.path + '.%s' % self.api.format + else: + self.path = self.path def _build_pagination_info(self, content_obj): """Extract pagination information in the desired format."""