From d98a4517642ffac63b82f56c04f25ae89d06c57b Mon Sep 17 00:00:00 2001
From: Nikos Kouremenos <kourem@gmail.com>
Date: Wed, 11 May 2005 11:09:53 +0000
Subject: [PATCH] send and show N/A if client or os is empty

---
 src/common/connection.py | 2 +-
 src/vcard.py             | 6 +++++-
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/common/connection.py b/src/common/connection.py
index c3eb7366bd..865a7ba511 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 23dc3ef9f7..54a4d9686c 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)
 
-- 
GitLab