Skip to content

Commit

Permalink
Don't crash when deserializing an incorrect conda env.
Browse files Browse the repository at this point in the history
  • Loading branch information
tinevez committed Jun 24, 2024
1 parent 0644e94 commit fe9020c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1061,7 +1061,8 @@ public void setValueObject( final Object val )
throw new IllegalArgumentException( "Argument '" + name + "' expects String. Got " + val.getClass().getSimpleName() );

final String v = ( ( String ) val );
set( v );
if ( envs.contains( v ) )
set( v );
}

@Override
Expand Down

0 comments on commit fe9020c

Please sign in to comment.