Separated api.get() from utils.convert_datetime() call.

Both are equally likely to fail, so now we can see which from the stack
trace and the line number.
This commit is contained in:
2016-05-31 17:58:13 +02:00
parent 72499b6fbb
commit 7b96aa656b

View File

@@ -167,7 +167,8 @@ class Find(Resource):
cls._ensure_projections(params, cls.ensure_query_projections)
url = utils.join_url_params(url, params)
item = utils.convert_datetime(api.get(url))
item = api.get(url)
item = utils.convert_datetime(item)
return cls(item)
@classmethod