summaryrefslogtreecommitdiffstats
path: root/docker/storperf-master
diff options
context:
space:
mode:
authormbeierl <mark.beierl@dell.com>2018-08-02 15:15:04 -0400
committermbeierl <mark.beierl@dell.com>2018-08-02 15:15:04 -0400
commit21d19004ea06187488fc6edef23db9a9c1826478 (patch)
tree816f0cb93d844e849c2081c5cf9bfa875daca097 /docker/storperf-master
parent5d833fe6b704cc8c26ebf57100d62d2f916fe3f6 (diff)
Update Tools
Updates to latet tools and corrects non-pep8 compliance Change-Id: Ic1dd8e8ee9d3ac5360e53ed3578d631f4da28161 Signed-off-by: mbeierl <mark.beierl@dell.com>
Diffstat (limited to 'docker/storperf-master')
-rw-r--r--docker/storperf-master/storperf/db/job_db.py2
-rw-r--r--docker/storperf-master/tests/carbon_tests/json_to_carbon_test.py4
2 files changed, 4 insertions, 2 deletions
diff --git a/docker/storperf-master/storperf/db/job_db.py b/docker/storperf-master/storperf/db/job_db.py
index eb35cac..b029a35 100644
--- a/docker/storperf-master/storperf/db/job_db.py
+++ b/docker/storperf-master/storperf/db/job_db.py
@@ -265,7 +265,7 @@ class JobDB(object):
break
try:
data = json.loads(row[1])
- except:
+ except Exception:
data = row[1]
params[row[0]] = data
db.close()
diff --git a/docker/storperf-master/tests/carbon_tests/json_to_carbon_test.py b/docker/storperf-master/tests/carbon_tests/json_to_carbon_test.py
index 523ff77..6043f10 100644
--- a/docker/storperf-master/tests/carbon_tests/json_to_carbon_test.py
+++ b/docker/storperf-master/tests/carbon_tests/json_to_carbon_test.py
@@ -7,10 +7,11 @@
# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################
-from storperf.carbon.converter import Converter
import json
import unittest
+from storperf.carbon.converter import Converter
+
class JSONToCarbonTest(unittest.TestCase):
@@ -112,5 +113,6 @@ class JSONToCarbonTest(unittest.TestCase):
"value", result["list_with_spaces.1.key"],
result["list_with_spaces.1.key"])
+
if __name__ == '__main__':
unittest.main()