Skip to content

Commit 294d800

Browse files
author
Grigory Ponomarenko
committed
Fix repos/system_upgrade/cloudlinux/actors/pinclnmirror
* fix invalid import on python2
1 parent adb8811 commit 294d800

File tree

1 file changed

+1
-1
lines changed
  • repos/system_upgrade/cloudlinux/actors/pinclnmirror

1 file changed

+1
-1
lines changed

repos/system_upgrade/cloudlinux/actors/pinclnmirror/actor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def process(self):
4040
try:
4141
with open(os.path.join(self.TARGET_USERSPACE, '/var/lib/dnf/_spacewalk.json')) as file:
4242
spacewalk_settings = json.load(file)
43-
except (OSError, IOError, json.JSONDecodeError):
43+
except (OSError, IOError, ValueError):
4444
api.current_logger().error("No spacewalk settings found - can't identify the last used CLN mirror")
4545

4646
mirror_url = spacewalk_settings.get(self.CLN_REPO_ID, {}).get("url", [self.DEFAULT_CLN_MIRROR])[0]

0 commit comments

Comments
 (0)