Use correct class

This commit is contained in:
PCoder 2019-04-03 23:34:26 +02:00
parent 903fee4db1
commit f1a7958f03
1 changed files with 1 additions and 1 deletions

View File

@ -1184,7 +1184,7 @@ class InvoiceDetailView(LoginRequiredMixin, DetailView):
else:
logger.error("User does not have permission to access")
invoice_obj = None
except HostingOrder.DoesNotExist:
except MonthlyHostingBill.DoesNotExist:
logger.debug("MHB not found for id {invoice_id}".format(
invoice_id=invoice_id
))