[Telepathy-commits] [telepathy-butterfly/master] Display an error and exit if telepathy-python is too old.
Jonny Lamb
jonny.lamb at collabora.co.uk
Sat Jan 24 07:14:52 PST 2009
Signed-off-by: Jonny Lamb <jonny.lamb at collabora.co.uk>
---
telepathy-butterfly | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/telepathy-butterfly b/telepathy-butterfly
index e096de4..aadf024 100755
--- a/telepathy-butterfly
+++ b/telepathy-butterfly
@@ -25,6 +25,11 @@ import os
import sys
import logging
+import telepathy
+if telepathy.version < (0, 15, 6):
+ print >> sys.stderr, 'Critical: telepathy-python >= 0.15.6 required. Exiting.'
+ sys.exit(1)
+
from telepathy.utils import debug_divert_messages
debug_divert_messages(os.getenv('BUTTERFLY_LOGFILE'))
--
1.5.6.5
More information about the Telepathy-commits
mailing list