Skip to content

Commit

Permalink
Merge pull request #362 from pypeclub/push/missing_space_in_traceback
Browse files Browse the repository at this point in the history
Traceback `line` without space
  • Loading branch information
mottosso authored Mar 2, 2020
2 parents e2fb91a + f289f81 commit acf97ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyblish/lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,12 @@ def extract_traceback(exception, fname=None):

formatted_traceback = ''.join(traceback.format_exception(
exc_type, exc_value, exc_traceback))
if 'File "<string>", line ' in formatted_traceback and fname is not None:
if 'File "<string>", line' in formatted_traceback and fname is not None:
_, lineno, func, msg = exception.traceback
fname = os.path.abspath(fname)
exception.traceback = (fname, lineno, func, msg)
formatted_traceback = formatted_traceback.replace(
'File "<string>", line ',
'File "<string>", line',
'File "{0}", line'.format(fname))
exception.formatted_traceback = formatted_traceback

Expand Down

0 comments on commit acf97ef

Please sign in to comment.