diff --git a/src/chocolatey/infrastructure/results/PackageResult.cs b/src/chocolatey/infrastructure/results/PackageResult.cs index 0802eb1406..c6e30f5486 100644 --- a/src/chocolatey/infrastructure/results/PackageResult.cs +++ b/src/chocolatey/infrastructure/results/PackageResult.cs @@ -51,9 +51,19 @@ public PackageResult(IPackage package, string installLocation, string source = n var sources = new List(); if (!string.IsNullOrEmpty(source)) { - sources.AddRange(source.Split(new[] {";", ","}, StringSplitOptions.RemoveEmptyEntries).Select(s => new Uri(s))); + try + { + sources.AddRange(source.Split(new[] { ";", "," }, StringSplitOptions.RemoveEmptyEntries).Select(s => new Uri(s))); + } + catch (Exception ex) + { + this.Log().Debug("Unable to determine sources from '{0}'. Using value as is.{1} {2}".format_with(source, Environment.NewLine, ex.to_string())); + // source is already set above + return; + } } + var rp = Package as DataServicePackage; if (rp != null && rp.DownloadUrl != null) {