Skip to content
This repository was archived by the owner on Jan 13, 2022. It is now read-only.

Commit d5730dc

Browse files
committed
Merge pull request #89 from tomdottom/master
Create valid path if no api.format specified
2 parents d932162 + 239104c commit d5730dc

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

instagram/bind.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,11 @@ def _build_path(self):
9797
del self.parameters[name]
9898

9999
self.path = self.path.replace(variable, value)
100-
self.path = self.path + '.%s' % self.api.format
100+
101+
if self.api.format:
102+
self.path = self.path + '.%s' % self.api.format
103+
else:
104+
self.path = self.path
101105

102106
def _build_pagination_info(self, content_obj):
103107
"""Extract pagination information in the desired format."""

0 commit comments

Comments
 (0)