John Salerno <johnjsal at NOSPAMgmail.com> writes: > I just need some advice for how to structure > the check of the empty string. How about return db_name or None since the empty string taken as a boolean is False.