Changeset 3555 for pykota

Show
Ignore:
Timestamp:
03/12/12 20:41:23 (13 years ago)
Author:
jerome
Message:

Strange bug in payment's content.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/pykota/storages/ldapstorage.py

    r3549 r3555  
    401401                    except ValueError : 
    402402                        # Payment with no description (old Payment) 
    403                         (date, amount) = payment.split(" # ") 
     403                        try : 
     404                            (date, amount) = payment.split(" # ") 
     405                        except ValueError : 
     406                            # Payment with no date ? Bug or something else ? 
     407                            amount = payment.split(" # ")[0] 
     408                            date = "" 
    404409                        description = "" 
    405410                    else :