Changeset 5939


Ignore:
Timestamp:
13 Apr 2011, 13:12:52 (14 years ago)
Author:
Henrik Bettermann
Message:

Catch traceback (though it will no more occur).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_epayment/interswitch_cb.py

    r5782 r5939  
    9191    try:
    9292        amount = int(getattr(pay_doc,'amount',0))
    93         surcharge = int(getattr(pay_doc,'surcharge',0))
     93        try:
     94            surcharge = int(getattr(pay_doc,'surcharge',0))
     95        except:
     96            surcharge = 0
    9497        resp_approved_amount = int(pd['resp_approved_amount'])
    9598        #set_trace()
Note: See TracChangeset for help on using the changeset viewer.