summaryrefslogtreecommitdiffstats
path: root/ogcp/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'ogcp/views.py')
-rw-r--r--ogcp/views.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/ogcp/views.py b/ogcp/views.py
index 5310376..0b5b934 100644
--- a/ogcp/views.py
+++ b/ogcp/views.py
@@ -101,11 +101,11 @@ def get_client_setup(ip):
db_partitions = r.json()['partitions']
for partition in db_partitions:
if partition['partition'] == 0:
- partition['code'] = PART_SCHEME_CODES[partition['code']]
+ partition['code'] = PART_SCHEME_CODES.get(partition['code'], 'MSDOS')
else:
- partition['code'] = PART_TYPE_CODES[partition['code']]
+ partition['code'] = PART_TYPE_CODES.get(partition['code'], 'EMPTY')
- partition['filesystem'] = FS_CODES[partition['filesystem']]
+ partition['filesystem'] = FS_CODES.get(partition['filesystem'], 'EMPTY')
return db_partitions