Skip to content

Commit fb9247a

Browse files
committed
Fixed failing test case
1 parent babcd9b commit fb9247a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/IECore/EXRImageReader.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,12 +103,12 @@ bool EXRImageReader::canRead( const string &fileName )
103103
{
104104

105105
Imf::InputFile *inputFile( NULL );
106-
inputFile = new Imf::InputFile( fileName.c_str() );
107-
106+
108107
try
109108
{
110109

111110
// This will throw an exception if the image is deep and the EXR version is < 2.0.
111+
inputFile = new Imf::InputFile( fileName.c_str() );
112112
Imf::Header header( inputFile->header() );
113113

114114
#ifdef IECORE_WITH_DEEPEXR

0 commit comments

Comments
 (0)