Skip to content

Commit 55c1f42

Browse files
Log the error from last spec parse attempt
Co-authored-by: Daniil Anfimov <[email protected]>
1 parent 28b967e commit 55c1f42

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

build_node/builders/base_rpm_builder.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,13 @@ def prepare_koji_sources(
523523
parsed_spec = SpecParser(
524524
spec_path, defs
525525
)
526-
except:
526+
except Exception as exc:
527+
self.logger.debug(
528+
'Error: %s. Trying to use SpecParser with different '
529+
'_sourcedir: %s',
530+
str(exc),
531+
git_sources_dir
532+
)
527533
defs['_sourcedir'] = git_sources_dir
528534
parsed_spec = SpecParser(
529535
spec_path, defs

0 commit comments

Comments
 (0)