Skip to content

Commit

Permalink
usddiff - _getFileFormat should return none if unrecognized format
Browse files Browse the repository at this point in the history
fixes errors with tests testUsdDiffToolVariousFormats4 + 5
  • Loading branch information
pmolodo committed May 2, 2017
1 parent 1fec5fc commit 2f05bd7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pxr/usd/bin/usddiff/usddiff.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,10 @@ def _getFileFormat(path):

# Don't check if file exists - this should be handled by resolver (and
# path may not exist / have been fetched yet)
return fileFormat.formatId
if fileFormat:
return fileFormat.formatId

return None

def _convertTo(inPath, outPath, usdcatCmd, flatten=None, fmt=None):
# Just copy empty files -- we want something to diff against but
Expand Down

0 comments on commit 2f05bd7

Please sign in to comment.