Skip to content

Commit 0b0f5e9

Browse files
committed
Fix: DNF have less parameters than yum
1 parent fd37cfd commit 0b0f5e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

opsbro/system_backends/system_backend_yum.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def _try_detect_dnf(self):
5151
return
5252
try:
5353
p = subprocess.Popen(['dnf5', '--version'], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
54-
except subprocess.SubprocessError:
54+
except (subprocess.SubprocessError, FileNotFoundError):
5555
self._is_dnf = False
5656
self._is_dnf_detected = True
5757
return

0 commit comments

Comments
 (0)