summaryrefslogtreecommitdiffstats
path: root/dashboard/src/dashboard/populate_db_iol.py
diff options
context:
space:
mode:
authorParker Berberian <pberberian@iol.unh.edu>2019-01-30 13:40:15 -0500
committerParker Berberian <pberberian@iol.unh.edu>2019-02-12 13:40:30 -0500
commit0d596d5686c6348b12e091d94ef638d0bdb3eb0f (patch)
tree0b5ae08772b6a23bdd004931d6ca3de5df7b8e14 /dashboard/src/dashboard/populate_db_iol.py
parent8ef0c2df68848f7c185ba226a3bc788c39297bb3 (diff)
Fixed all Flake8 errors
Change-Id: I1186429df8989461e2384f1f3e533c55cebfb1b4 Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
Diffstat (limited to 'dashboard/src/dashboard/populate_db_iol.py')
-rw-r--r--dashboard/src/dashboard/populate_db_iol.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/dashboard/src/dashboard/populate_db_iol.py b/dashboard/src/dashboard/populate_db_iol.py
index 4368520..916dd97 100644
--- a/dashboard/src/dashboard/populate_db_iol.py
+++ b/dashboard/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,