Currently raises `TypeError: sequence item 1: expected str instance, NoneType found` which is a bit cryptic. I'm happy to contribute this change.