On Fri, Sep 19, 2014 at 3:53 PM, Peter Otten <__pete...@web.de> wrote:
>
> If I understand you correctly you can test for the presence of a value.
> Example:
>
> api = response.json()['response']['players'][steamID64]
> status["steamrep_scammer"] = "steamrep_scammer" in api


Thanks, this way I can only have problems calling the 'requests.get()',
right (In the case the URL doesn't exists)? This would be only one
try-expect in each function, this way is good for me.
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to