[pkg-fso-commits] [SCM] FSO frameworkd Debian packaging branch,	debian, updated. upstream/0.9.5.5-717-g0f98819
    Sebastian Krzyszkowiak 
    seba.dos1 at gmail.com
       
    Sat Aug  6 08:17:15 UTC 2011
    
    
  
The following commit has been merged in the debian branch:
commit d83ac1f996300c3928591fd74f1116b919222c41
Author: Sebastian Krzyszkowiak <seba.dos1 at gmail.com>
Date:   Thu Jul 9 13:09:34 2009 +0200
    opimd: SIM-Messages-FSO: add error handling when handling timestamp
diff --git a/framework/subsystems/opimd/pimb_sim_messages_fso.py b/framework/subsystems/opimd/pimb_sim_messages_fso.py
index 5304c85..059b85e 100644
--- a/framework/subsystems/opimd/pimb_sim_messages_fso.py
+++ b/framework/subsystems/opimd/pimb_sim_messages_fso.py
@@ -51,7 +51,7 @@ _UNAVAILABLE_PART = '<???>'
 class SIMMessageBackendFSO(Backend):
 #----------------------------------------------------------------------------#
     name = 'SIM-Messages-FSO'
-    properties = []
+    properties = [PIMB_CAN_ADD_ENTRY]
 
     # Dict containing the domain handler objects we support
     _domain_handlers = None
@@ -114,9 +114,12 @@ class SIMMessageBackendFSO(Backend):
         entry['SMS-combined_message'] = 0
 
         if props.has_key('timestamp'):
-            timestamp = props['timestamp'][:len(props['timestamp'])-6]
-            entry['Timezone'] = props['timestamp'][len(props['timestamp'])-5:]
-            entry['Timestamp'] = time.mktime(time.strptime(timestamp))
+            try:
+                timestamp = props['timestamp'][:len(props['timestamp'])-6]
+                entry['Timezone'] = props['timestamp'][len(props['timestamp'])-5:]
+                entry['Timestamp'] = time.mktime(time.strptime(timestamp))
+            except ValueError:
+                logger.error('Couldn't handle timestamp!')
 
         if props.has_key('csm_seq'):
             entry['SMS-combined_message'] = 1
-- 
FSO frameworkd Debian packaging
    
    
More information about the pkg-fso-commits
mailing list