It's not ideal that find_source_in_db returns a single element list. Ideally, it would return a string. I see how that could make error handeling a little harder (since the function will return either a string or a list), but worth thinking about how to improve.
It's not ideal that
find_source_in_db
returns a single element list. Ideally, it would return a string. I see how that could make error handeling a little harder (since the function will return either a string or a list), but worth thinking about how to improve.