diff options
author | Daniel Moody <daniel.moody@mongodb.com> | 2022-07-13 10:38:25 -0500 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-07-13 16:16:13 +0000 |
commit | a48948a9d28b21ecc72aaeedc5420a2b325d43e3 (patch) | |
tree | c3a6cb66fe562318e37f39e84af4be9334fffaec /pytests | |
parent | 8b895dbbdf2b5b4cd1a584db909665a9a720a3fd (diff) | |
download | mongo-a48948a9d28b21ecc72aaeedc5420a2b325d43e3.tar.gz |
SERVER-67993 fix 4.4 pylinters
(cherry picked from commit 1919b5797cc6e5bb3d03fe6d0d24a61498b3445e)
Diffstat (limited to 'pytests')
-rwxr-xr-x | pytests/powertest.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pytests/powertest.py b/pytests/powertest.py index 1f7ae3c91c9..cc5e0618f43 100755 --- a/pytests/powertest.py +++ b/pytests/powertest.py @@ -437,7 +437,8 @@ def download_file(url, file_name, download_retries=5): except requests.exceptions.ChunkedEncodingError as err: download_retries -= 1 if download_retries == 0: - raise Exception("Incomplete download for URL {}: {}".format(url, err)) + raise Exception("Incomplete download for URL {}: {}".format(url, + err)) from err continue # Check if file download was completed. @@ -503,8 +504,7 @@ def install_tarball(tarball, root_dir): fi ; done ; popd ; - """.format( # pylint: disable=bad-continuation - tarball=tarball, tmp_dir=tmp_dir, root_dir=root_dir) + """.format(tarball=tarball, tmp_dir=tmp_dir, root_dir=root_dir) ret, output = execute_cmd(cmds, use_file=True) shutil.rmtree(tmp_dir) else: |