GBLS / docassemble-MACourts

List Massachusetts Courts in Docassemble
MIT License
5 stars 11 forks source link

Stripped out Nones when they are wrapped in iterables #33

Closed BryceStevenWilley closed 3 years ago

BryceStevenWilley commented 3 years ago

Had an issue when running the library on a local docker instance of Docassemble: the location question of in ALMassachusetts (https://github.com/SuffolkLITLab/docassemble-ALMassachusetts/blob/main/docassemble/ALMassachusetts/data/questions/al_massachusetts.yml#L139-L177) wasn't properly setting trial_court, because all_courts was a single list of one None value.

Felt best to fix it at the source. I didn't dive in further past where I made these changes, so I'm not sure when these pesky Nones are being generated. It does likely have something to do with the server not having access to Google Maps API, but that seems like it should be avoidable.