'data_formats_options_csv_show':'True',
})
if c.getinfo(pycurl.RESPONSE_CODE) != 200:
- raise CommandException("Supposed to receive 200, got %s" % c.getinfo(c.RESPONSE_CODE))
+ raise CommandError("Supposed to receive 200, got %s" % c.getinfo(c.RESPONSE_CODE))
reader = csv.reader(s.getvalue().splitlines(), delimiter=';')
try:
amount = Decimal(self.cleaned_data['amount'])
if amount < 1 or amount > self.invoice.total_amount-self.invoice.total_vat:
- raise ValidatonError(errstr)
+ raise ValidationError(errstr)
if amount.as_tuple().exponent > 0 or amount.as_tuple().exponent < -2:
raise ValidationError("Maximum two decimal digits supported")
return self.cleaned_data['amount']
try:
amount = Decimal(self.cleaned_data['vatamount'])
if amount < 1 or amount > self.invoice.total_vat:
- raise ValidatonError(errstr)
- if amount.as_tuple().exponent > 0 or amount.as_tuple().exponent < -2: raise ValidationError("Maximum two decimal digits supported")
+ raise ValidationError(errstr)
+ if amount.as_tuple().exponent > 0 or amount.as_tuple().exponent < -2:
+ raise ValidationError("Maximum two decimal digits supported")
return self.cleaned_data['vatamount']
except ValidationError:
raise
curs = connection.cursor()
curs.execute("SELECT pg_try_advisory_lock(72181378)")
if not curs.fetchall()[0][0]:
- raise CommandException("Failed to get advisory lock, existing send_queued_mail process stuck?")
+ raise CommandError("Failed to get advisory lock, existing send_queued_mail process stuck?")
for m in QueuedMail.objects.all():
# Yes, we do a new connection for each run. Just because we can.