Represents an integrity error when downloading a URL.
| 255 | |
| 256 | |
| 257 | class IntegrityError(Exception): |
| 258 | """Represents an integrity error when downloading a URL.""" |
| 259 | |
| 260 | def __init__(self, *args, length: int): |
| 261 | self.length = length |
| 262 | super().__init__(*args) |
| 263 | |
| 264 | |
| 265 | def secure_download_stream(url, size, sha256): |
no outgoing calls
no test coverage detected