[pkg-fso-commits] [SCM] framworkd debian packageing branch, nomeata-fixes, updated. milestone2-54-g723b74a

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


The following commit has been merged in the nomeata-fixes branch:
commit 723b74a5db0a0ea6393c7a7b26f7dffa673f1121
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