Skip to content

Commit

Permalink
Fix repos/system_upgrade/cloudlinux/actors/pinclnmirror
Browse files Browse the repository at this point in the history
* fix invalid import on python2
  • Loading branch information
Grigory Ponomarenko committed Jul 5, 2024
1 parent adb8811 commit 294d800
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def process(self):
try:
with open(os.path.join(self.TARGET_USERSPACE, '/var/lib/dnf/_spacewalk.json')) as file:
spacewalk_settings = json.load(file)
except (OSError, IOError, json.JSONDecodeError):
except (OSError, IOError, ValueError):
api.current_logger().error("No spacewalk settings found - can't identify the last used CLN mirror")

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

0 comments on commit 294d800

Please sign in to comment.