[Tutor] Python script errors

Steven D'Aprano steve at pearwood.info
Wed Dec 12 15:28:43 EST 2018


On Wed, Dec 12, 2018 at 06:57:09AM -0600, Ravi Kumar wrote:

> I know this occurs when the api response is nulls but how do I handle this?

if response is None:
    handle None case
else:
    handle non-None case



-- 
Steve


More information about the Tutor mailing list