Fixed: custom script error when importing some downloads

Co-authored-by: Qstick <376117+Qstick@users.noreply.github.com>

(cherry picked from commit 8f482c534f15c14a9b3097313a4f5e9273549d88)

Closes #3627
pull/3443/head
Bogdan 12 months ago
parent 46b5e9b036
commit 7c3871441e

@ -131,14 +131,7 @@ namespace NzbDrone.Common.Processes
var key = environmentVariable.Key.ToString();
var value = environmentVariable.Value?.ToString();
if (startInfo.EnvironmentVariables.ContainsKey(key))
{
startInfo.EnvironmentVariables[key] = value;
}
else
{
startInfo.EnvironmentVariables.Add(key, value);
}
startInfo.EnvironmentVariables[key] = value;
}
catch (Exception e)
{

Loading…
Cancel
Save