Below, it's done because of `os.path.join`, which can raise an exception for strings of different types.