Fix a bug that caused list methods to fail.
authorJoshua <jroesslein@gmail.com>
Sat, 30 Jan 2010 23:52:33 +0000 (17:52 -0600)
committerJoshua <jroesslein@gmail.com>
Sat, 30 Jan 2010 23:52:33 +0000 (17:52 -0600)
tweepy/binder.py

index e62e9c521682e90f6bd8350a4795010117f6a196..7ae14dd8d0c532d0da71ca5e4a033aaa3eac364f 100644 (file)
@@ -92,11 +92,12 @@ def bind_api(**config):
                 else:
                     try:
                         value = urllib.quote(self.parameters[name])
-                        self.path = self.path.replace(variable, value)
                     except KeyError:
                         raise TweepError('No parameter value found for path variable: %s' % name)
                     del self.parameters[name]
 
+                self.path = self.path.replace(variable, value)
+
         def execute(self):
             # Build the request URL
             url = self.api_root + self.path