mirror of
https://github.com/anchore/syft.git
synced 2026-11-05 17:06:32 +01:00
fix: add panic recovery for license parse (#1839)
* fix: add panic recovery for license parse --------- Signed-off-by: Christopher Phillips <christopher.phillips@anchore.com>
This commit is contained in:
+1
-1
@@ -62,7 +62,7 @@ func (l Licenses) Swap(i, j int) {
|
||||
func NewLicense(value string) License {
|
||||
spdxExpression, err := license.ParseExpression(value)
|
||||
if err != nil {
|
||||
log.Trace("unable to parse license expression: %w", err)
|
||||
log.Trace("unable to parse license expression for %q: %w", value, err)
|
||||
}
|
||||
|
||||
return License{
|
||||
|
||||
Reference in New Issue
Block a user