From af648d3af85ceac805e211223a6fd8b8927fca18 Mon Sep 17 00:00:00 2001 From: Troy Dawson Date: Jul 10 2023 21:24:30 +0000 Subject: Exit with message if unable to look for file --- diff --git a/src/centpkg/lookaside.py b/src/centpkg/lookaside.py index 2214d57..fde0922 100644 --- a/src/centpkg/lookaside.py +++ b/src/centpkg/lookaside.py @@ -97,8 +97,16 @@ class StreamLookasideCache(CGILookasideCache): """ _name = utils.get_repo_name(name) if is_dist_git(os.getcwd()) else name - return super(StreamLookasideCache, self).remote_file_exists( + try: + status = super(StreamLookasideCache, self).remote_file_exists( _name, filename, hashstr) + except UploadError as e: + self.log.info('Error checking for %s at %s' + % (filename, self.upload_url)) + self.log.info(e) + raise SystemExit + + return status def upload(self, name, filename, hashstr, offline=False): """