[pkg-fso-commits] [SCM] framworkd debian packageing branch, debian, updated. debian/0.2.0-git20080805-5-2-g1c9b7a9

Joachim Breitner mail at joachim-breitner.de
Sat Aug 23 14:06:13 UTC 2008


The following commit has been merged in the debian branch:
commit e9f68595d9cc6fc27809e121746597b1b13c3695
Author: Joachim Breitner <mail at joachim-breitner.de>
Date:   Sat Aug 23 15:42:21 2008 +0200

    ogsmd: Make unknown number types non-fatal

diff --git a/framework/subsystems/ogsmd/gsm/const.py b/framework/subsystems/ogsmd/gsm/const.py
index 85570a5..911d62c 100644
--- a/framework/subsystems/ogsmd/gsm/const.py
+++ b/framework/subsystems/ogsmd/gsm/const.py
@@ -802,7 +802,10 @@ def phonebookTupleToNumber( nstring, ntype ):
     """
 
     # FIXME figure out how to decode ntype 208
-    assert ntype in ( 129, 145, 185, 208 ), "unknown type %i" % ntype
+    if not ntype in ( 129, 145, 185, 208 ):
+	# No logger available in this module, so I’m being lazy, this
+	# is just a workaround anyways.
+	print >>sys.stderr, "Unknown number type %i when reading number \"%s\"" % (ntype, nstring)
     if ntype == 145: # should not include '+', but sometimes it does
         if nstring[0] == '+':
             return nstring

-- 
framworkd debian packageing



More information about the pkg-fso-commits mailing list