diff options
author | Daniel Moody <daniel.moody@mongodb.com> | 2022-07-12 13:38:18 -0500 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-07-12 18:52:26 +0000 |
commit | 1919b5797cc6e5bb3d03fe6d0d24a61498b3445e (patch) | |
tree | ba56662bdadee2b6009c687112c9ed57249c27ee /pytests | |
parent | fafbdd8cc4abd580bb403aaf8ea2dab15375551b (diff) | |
download | mongo-1919b5797cc6e5bb3d03fe6d0d24a61498b3445e.tar.gz |
SERVER-67993 fix 4.4 pylinters
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 ae2489ab3c3..fa6851f9ff5 100755 --- a/pytests/powertest.py +++ b/pytests/powertest.py @@ -439,7 +439,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. @@ -505,8 +506,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: |