-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
bugSomething isn't workingSomething isn't working
Description
If an key exists in a Resource
, but that key is defined in Resource.nested_objects
, and the value of that key is None
, the following exception is raised:
TypeError: 'NoneType' object is not iterable
For example:
program = PatientProgram(currentPhase=None)
program.currentPhase
Traceback (most recent call last):
TypeError: 'NoneType' object is not iterable
The workaround for now, is to just access the attribute using dict
syntax: program["currentPhase"]
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working