When using mocks, it's possible for the file attribute of an extracted
traceback to be None.