From 770b21fa606e7f15e66f875c2d91e4f2993d2b38 Mon Sep 17 00:00:00 2001
From: Yann Leboulanger <asterix@lagaule.org>
Date: Wed, 5 Aug 2009 23:13:47 +0200
Subject: [PATCH] handle strange notification daemon version values. Fixes
 #5209

---
 src/notify.py | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/notify.py b/src/notify.py
index d80d33d9a6..09a4ae355d 100644
--- a/src/notify.py
+++ b/src/notify.py
@@ -654,8 +654,11 @@ class DesktopNotification:
 			version = '0.9'
 		version_list = version.split('.')
 		self.version = []
-		while len(version_list):
-			self.version.append(int(version_list.pop(0)))
+		try:
+			while len(version_list):
+				self.version.append(int(version_list.pop(0)))
+		except ValueError:
+			self.version_error_handler_3_x_try(None)
 		self.attempt_notify()
 
 	def get_version(self):
-- 
GitLab