aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--peebz/bz2pi.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/peebz/bz2pi.py b/peebz/bz2pi.py
index 1726d30..373b589 100644
--- a/peebz/bz2pi.py
+++ b/peebz/bz2pi.py
@@ -121,11 +121,16 @@ def main(cmdargs: argparse.Namespace) -> None:
for bdata in buglist:
logger.debug('Looking at %s: %s', bdata['id'], bdata['summary'])
bid = bdata['id']
- cconf = peebz.get_component_config(bdata['product'], bdata['component'])
- if config['bugzilla'].get('privacy_mode', False) or cconf.get('bz_privacy_mode', False):
+ privacy_mode = False
+ if config['bugzilla'].get('privacy_mode', False):
privacy_mode = True
else:
- privacy_mode = False
+ try:
+ cconf = peebz.get_component_config(bdata['product'], bdata['component'])
+ if cconf.get('bz_privacy_mode', False):
+ privacy_mode = True
+ except KeyError:
+ pass
process_new_comments(bid, privacy_mode=privacy_mode, dry_run=cmdargs.dry_run)
seen.add(bid)
else: