diff --git a/magento/api.py b/magento/api.py index 3d247fb..13623ab 100644 --- a/magento/api.py +++ b/magento/api.py @@ -109,7 +109,7 @@ def store_views(self): """ assert protocol \ in PROTOCOLS, "protocol must be %s" % ' OR '.join(PROTOCOLS) - self.url = full_url and url or expand_url(url, protocol) + self.url = str(full_url and url or expand_url(url, protocol)) self.username = username self.password = password self.protocol = protocol