diff --git a/dnf/automatic/main.py b/dnf/automatic/main.py index ca76af1fa5..96800dbdc7 100644 --- a/dnf/automatic/main.py +++ b/dnf/automatic/main.py @@ -373,8 +373,9 @@ def main(args): return 1 except dnf.exceptions.Error as exc: logger.error(_('Error: %s'), ucd(exc)) - emitters.notify_error(_('Error: %s') % str(exc)) - emitters.commit() + if conf.emitters != None: + emitters.notify_error(_('Error: %s') % str(exc)) + emitters.commit() return 1 return 0