From 5383c4b3672949a6577eb91f4f4bbc8d8431d02e Mon Sep 17 00:00:00 2001 From: The MMGen Project Date: Wed, 5 Aug 2026 17:24:51 +0000 Subject: [PATCH] cfg.py: perform incompatible opts check for user opts only --- mmgen/cfg.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mmgen/cfg.py b/mmgen/cfg.py index 6bfca990..06c0e256 100755 --- a/mmgen/cfg.py +++ b/mmgen/cfg.py @@ -780,7 +780,8 @@ class Config(Lockable): def _die_on_incompatible_opts(self): for group in self._incompatible_opts: - bad = [k for k in self.__dict__ if k in group and getattr(self, k) is not None] + bad = [k for k in self.__dict__ + if k in group and k in self._uopts and getattr(self, k) is not None] if len(bad) > 1: die(1, 'Conflicting options: {}'.format(', '.join(map(fmt_opt, bad))))