diff options
Diffstat (limited to 'functest/opnfv_tests/vnf/ims/ixia/utils/IxLoadUtils.py')
-rw-r--r-- | functest/opnfv_tests/vnf/ims/ixia/utils/IxLoadUtils.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/functest/opnfv_tests/vnf/ims/ixia/utils/IxLoadUtils.py b/functest/opnfv_tests/vnf/ims/ixia/utils/IxLoadUtils.py index bc71a38cf..93da2018c 100644 --- a/functest/opnfv_tests/vnf/ims/ixia/utils/IxLoadUtils.py +++ b/functest/opnfv_tests/vnf/ims/ixia/utils/IxLoadUtils.py @@ -70,7 +70,7 @@ def waitForActionToFinish(connection, replyObj, actionUrl): if actionStatusObj.status == kActionStatusError: errorMsg += actionStatusObj.error - print errorMsg + print(errorMsg) sys.exit(1) else: @@ -172,13 +172,13 @@ def uploadFile(connection, url, fileName, uploadPath, overwrite=True): with open(fileName, 'rb') as f: resp = requests.post(url, data=f, params=params, headers=headers) - except requests.exceptions.ConnectionError, e: + except requests.exceptions.ConnectionError as e: raise Exception('Upload file failed. Received connection error. \ One common cause for this error is the size of the \ file to be uploaded.The web server sets a limit of 1GB\ for the uploaded file size. \ Received the following error: %s' % str(e)) - except IOError, e: + except IOError as e: raise Exception('Upload file failed. Received IO error: %s' % str(e)) except Exception: |