def get_upload_zip(self):
        saved_file = self._get_upload_file()

        try:
            uploaded_zip = zipfile.ZipFile(saved_file)
        except Exception as e:
            self.mark_with_error(_("Error opening file as zip file: %s" % e))
            return

        if uploaded_zip.testzip():
            self.mark_with_error(_("Error encountered processing Zip File. File doesn't look valid."))
            return

        return uploaded_zip
dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/hqmedia/cache.py/BulkMultimediaStatusCache.get_upload_zip/original