I'm OK with letting through `' '` since that seems like a legitimately malformed course id, not just a missing one (and therefore should generate an error).  I didn't realize `bool('')` evaluated to `False`, I'll update the code.