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.
2 parents 2ee7a0b + a719363 commit 647bc87Copy full SHA for 647bc87
tests/ci/github_helper.py
@@ -173,8 +173,9 @@ def get_pull_cached(
173
raise
174
self.sleep_on_rate_limit()
175
logger.debug("Caching PR #%s from API in %s", number, cache_file)
176
- with open(cache_file, "wb") as prfd:
177
- self.dump(pr, prfd) # type: ignore
+ if self.cache_path.is_dir():
+ with open(cache_file, "wb") as prfd:
178
+ self.dump(pr, prfd) # type: ignore
179
return pr
180
181
def get_user_cached(
0 commit comments