We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent adb8811 commit 294d800Copy full SHA for 294d800
repos/system_upgrade/cloudlinux/actors/pinclnmirror/actor.py
@@ -40,7 +40,7 @@ def process(self):
40
try:
41
with open(os.path.join(self.TARGET_USERSPACE, '/var/lib/dnf/_spacewalk.json')) as file:
42
spacewalk_settings = json.load(file)
43
- except (OSError, IOError, json.JSONDecodeError):
+ except (OSError, IOError, ValueError):
44
api.current_logger().error("No spacewalk settings found - can't identify the last used CLN mirror")
45
46
mirror_url = spacewalk_settings.get(self.CLN_REPO_ID, {}).get("url", [self.DEFAULT_CLN_MIRROR])[0]
0 commit comments