projects
/
osm
/
osmclient.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove set_default_params method from client.py
[osm/osmclient.git]
/
osmclient
/
sol005
/
subscription.py
diff --git
a/osmclient/sol005/subscription.py
b/osmclient/sol005/subscription.py
index
d4860ac
..
e58ef63
100644
(file)
--- a/
osmclient/sol005/subscription.py
+++ b/
osmclient/sol005/subscription.py
@@
-127,12
+127,10
@@
class Subscription(object):
"{}/{}".format(self._apiBase, subscription_id)
)
self._logger.debug(yaml.safe_dump(resp))
"{}/{}".format(self._apiBase, subscription_id)
)
self._logger.debug(yaml.safe_dump(resp))
- if resp:
- return json.loads(resp)
if not resp or "id" not in resp:
raise ClientException(
"failed to get subscription info: {}".format(resp)
)
if not resp or "id" not in resp:
raise ClientException(
"failed to get subscription info: {}".format(resp)
)
- return
resp
+ return
json.loads(resp)
except NotFound:
raise NotFound("subscription '{}' not found".format(subscription_id))
except NotFound:
raise NotFound("subscription '{}' not found".format(subscription_id))