From ae824fb2fc2770c84cc34c1956e4c76c8c972860 Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Fri, 20 Oct 2023 23:32:40 +0545 Subject: cleanup: convert exceptions to OSError In Python 3, these exceptions were merged into OSError, so switch everything over to that. Change-Id: If876a28b692de5aa5c62a3bdc8c000793ce52c63 Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/390376 Reviewed-by: Aravind Vasudevan Commit-Queue: Mike Frysinger Tested-by: Mike Frysinger --- git_superproject.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'git_superproject.py') diff --git a/git_superproject.py b/git_superproject.py index 651b6dbb..b80f0130 100644 --- a/git_superproject.py +++ b/git_superproject.py @@ -381,7 +381,7 @@ class Superproject: try: with open(manifest_path, "w", encoding="utf-8") as fp: fp.write(manifest_str) - except IOError as e: + except OSError as e: self._LogError("cannot write manifest to : {} {}", manifest_path, e) return None return manifest_path -- cgit v1.2.3-54-g00ecf