aboutsummaryrefslogtreecommitdiffstats
path: root/src/dashboard/populate_db_iol.py
diff options
context:
space:
mode:
authorParker Berberian <pberberian@iol.unh.edu>2019-02-18 17:07:47 +0000
committerGerrit Code Review <gerrit@opnfv.org>2019-02-18 17:07:47 +0000
commit011026903a94944258bf8c69aeb2700c6c57b02e (patch)
tree6d0426658a4a34d1d2af879170aaaad0db65695b /src/dashboard/populate_db_iol.py
parent0b48d9b6cb6941a9cecedc409ec0968d0b72ec62 (diff)
parent37620c753acf540e3c16364419617ebeb0388c5b (diff)
Merge "Fixed all Flake8 errors"
Diffstat (limited to 'src/dashboard/populate_db_iol.py')
-rw-r--r--src/dashboard/populate_db_iol.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dashboard/populate_db_iol.py b/src/dashboard/populate_db_iol.py
index 4368520..916dd97 100644
--- a/src/dashboard/populate_db_iol.py
+++ b/src/dashboard/populate_db_iol.py
@@ -307,7 +307,7 @@ class Populator:
size = 0
try:
size = int(disk_data['size'].split('.')[0])
- except:
+ except Exception:
size = int(disk_data['size'].split('.')[0][:-1])
DiskProfile.objects.create(
size=size,