Commit 4db8f648 authored by Marc-Andre Santune's avatar Marc-Andre Santune
Browse files

passing kwargs to _req_with_retries

parent 14a78200
...@@ -51,7 +51,6 @@ class BuildingGeneric: ...@@ -51,7 +51,6 @@ class BuildingGeneric:
Eg: get all buildings having given centroids Eg: get all buildings having given centroids
""" """
buildings = self._req_with_retries("get", self.settings.base_url, **kwargs) buildings = self._req_with_retries("get", self.settings.base_url, **kwargs)
return buildings return buildings
...@@ -251,7 +250,7 @@ class BuildingGeneric: ...@@ -251,7 +250,7 @@ class BuildingGeneric:
**kwargs **kwargs
): ):
"""Request method. Retry if it failed""" """Request method. Retry if it failed"""
res = self._req(method=method, url=url, json=json, headers=headers) res = self._req(method=method, url=url, json=json, headers=headers, **kwargs)
return res return res
def _req( def _req(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment