handle strange notification daemon version values. Fixes #5209

This commit is contained in:
Yann Leboulanger 2009-08-05 23:13:47 +02:00
parent 5c9e35cd0e
commit 770b21fa60
1 changed files with 5 additions and 2 deletions

View File

@ -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):