Fix build.

This commit is contained in:
Jelmer Vernooij 2021-04-02 17:57:25 +01:00
parent 0ee47771db
commit f9e757760b

View file

@ -544,10 +544,10 @@ def build_incrementally(
source_date_epoch=source_date_epoch, source_date_epoch=source_date_epoch,
run_gbp_dch=(update_changelog is False) run_gbp_dch=(update_changelog is False)
) )
except SbuildFailure as e: except UnidentifiedDebianBuildError:
if e.error is None: logging.warning("Build failed with unidentified error. Giving up.")
logging.warning("Build failed with unidentified error. Giving up.") raise
raise except DetailedDebianBuildFailure as e:
if e.phase is None: if e.phase is None:
logging.info("No relevant context, not making any changes.") logging.info("No relevant context, not making any changes.")
raise raise