explicitly re-raising exceptions

To fix pylint.
This commit is contained in:
Jochen Sprickerhof 2022-06-01 22:52:22 +02:00
parent 2d0645c1c4
commit 4ce79a7eaa
7 changed files with 22 additions and 22 deletions

View file

@ -221,7 +221,7 @@ def main():
net.download_file(url.replace('/repo', '/archive'), dldir=tmp_dir)
except requests.exceptions.HTTPError as e:
raise FDroidException(_('Downloading {url} failed. {error}')
.format(url=url, error=e))
.format(url=url, error=e)) from e
unsigned_apk = os.path.join(unsigned_dir, apkfilename)
compare_result = common.verify_apks(remote_apk, unsigned_apk, tmp_dir)