Skip to content
Snippets Groups Projects
Commit d98a4517 authored by nkour's avatar nkour
Browse files

send and show N/A if client or os is empty

parent 225ca870
No related branches found
No related tags found
No related merge requests found
...@@ -97,7 +97,7 @@ def get_os_info(): ...@@ -97,7 +97,7 @@ def get_os_info():
elif path_to_file.endswith('lfs-release'): # file just has version elif path_to_file.endswith('lfs-release'): # file just has version
text = distro_name + ' ' + text text = distro_name + ' ' + text
return text return text
return '' return 'N/A'
class Connection: class Connection:
"""Connection class""" """Connection class"""
......
...@@ -101,7 +101,11 @@ class Vcard_window: ...@@ -101,7 +101,11 @@ class Vcard_window:
client += self.os_info[i]['client'] client += self.os_info[i]['client']
os += self.os_info[i]['os'] os += self.os_info[i]['os']
i += 1 i += 1
if client == '':
client = 'N/A'
if os == '':
os = 'N/A'
self.xml.get_widget('client_name_version_label').set_text(client) self.xml.get_widget('client_name_version_label').set_text(client)
self.xml.get_widget('os_label').set_text(os) self.xml.get_widget('os_label').set_text(os)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment