summaryrefslogtreecommitdiffstats
path: root/git_superproject.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2023-10-20 23:32:40 +0545
committerLUCI <gerrit-scoped@luci-project-accounts.iam.gserviceaccount.com>2023-10-21 00:56:10 +0000
commitae824fb2fc2770c84cc34c1956e4c76c8c972860 (patch)
tree4f8ec44e29c7401b99b3aef1b28a2104a0a86221 /git_superproject.py
parent034950b9eebacd6598ea518a0b254845bc806ab6 (diff)
downloadgit-repo-ae824fb2fc2770c84cc34c1956e4c76c8c972860.tar.gz
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 <aravindvasudev@google.com> Commit-Queue: Mike Frysinger <vapier@google.com> Tested-by: Mike Frysinger <vapier@google.com>
Diffstat (limited to 'git_superproject.py')
-rw-r--r--git_superproject.py2
1 files changed, 1 insertions, 1 deletions
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:
381 try: 381 try:
382 with open(manifest_path, "w", encoding="utf-8") as fp: 382 with open(manifest_path, "w", encoding="utf-8") as fp:
383 fp.write(manifest_str) 383 fp.write(manifest_str)
384 except IOError as e: 384 except OSError as e:
385 self._LogError("cannot write manifest to : {} {}", manifest_path, e) 385 self._LogError("cannot write manifest to : {} {}", manifest_path, e)
386 return None 386 return None
387 return manifest_path 387 return manifest_path