Skip to content

Commit a789233

Browse files
Daniel Machjrohel
authored andcommitted
[conf] Fix traceback in reading uknown keys from /etc/dnf/modules.d/
1 parent 23f422a commit a789233

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dnf/conf/read.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ def _build_module(self, parser, id_, module_path):
136136
if not value or value == 'None':
137137
value = None
138138

139-
opt = module.__getattribute__(name)
139+
opt = getattr(module, name, None)
140140
if opt: # and not opt._is_runtimeonly():
141141
try:
142142
if value is not None:

0 commit comments

Comments
 (0)