diff --git a/src/common/connection.py b/src/common/connection.py index c3eb7366b..865a7ba51 100644 --- a/src/common/connection.py +++ b/src/common/connection.py @@ -97,7 +97,7 @@ def get_os_info(): elif path_to_file.endswith('lfs-release'): # file just has version text = distro_name + ' ' + text return text - return '' + return 'N/A' class Connection: """Connection class""" diff --git a/src/vcard.py b/src/vcard.py index 23dc3ef9f..54a4d9686 100644 --- a/src/vcard.py +++ b/src/vcard.py @@ -101,7 +101,11 @@ class Vcard_window: client += self.os_info[i]['client'] os += self.os_info[i]['os'] 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('os_label').set_text(os)