Commit de194dad authored by Tristan Van Berkom's avatar Tristan Van Berkom

_artifactcache/pushreceive.py: Cleanup reported error when receiving oversized artifacts

This user facing string was redundantly declared in two places, only
the message when catching the error was ever printed.
parent a231d41b
Pipeline #23444439 passed with stages
in 29 minutes and 27 seconds
......@@ -643,9 +643,8 @@ class OSTreeReceiver(object):
def run(self):
try:
exit_code = self.do_run()
except ArtifactTooLargeException:
logging.warning("The artifact was too large for the filesystem which mounts "
"the remote cache.")
except ArtifactTooLargeException as e:
logging.warning(str(e))
exit_code = 0
except:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment