diff options
author | Parker Berberian <pberberian@iol.unh.edu> | 2019-02-18 17:07:47 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2019-02-18 17:07:47 +0000 |
commit | 16f1c65ac45a519a7ed710bca3068d6433fb2522 (patch) | |
tree | 9564805587db5513a73d7383804ac49787a32e88 /dashboard/src/dashboard/populate_db_iol.py | |
parent | 55653461319fdc51bac52367a2776068165a4b6d (diff) | |
parent | 0d596d5686c6348b12e091d94ef638d0bdb3eb0f (diff) |
Merge "Fixed all Flake8 errors"
Diffstat (limited to 'dashboard/src/dashboard/populate_db_iol.py')
-rw-r--r-- | dashboard/src/dashboard/populate_db_iol.py | 2 |
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, |