fix syntax error about missing closing ')'

This commit is contained in:
Harald Welte 2017-01-10 15:30:04 +01:00
parent 2af5ece320
commit ae9dbeb740
1 changed files with 1 additions and 1 deletions

View File

@ -124,7 +124,7 @@ class DPDeliveryCarrier(models.Model):
position = im.build_position(service.code, im_sender, im_recipient)
im.add_position(position)
if im.wallet_balance < im.compute_total():
raise Warning("Wallet balance %f is less than label cost %f!" % (im.wallet_balance/100, im.compute_total()/100)
raise Warning("Wallet balance %f is less than label cost %f!" % (im.wallet_balance/100, im.compute_total()/100))
r = im.checkoutPNG()
voucher = r.shoppingCart.voucherList.voucher[0]
filename = 'DP'+voucher.voucherId+'.png'