Improve logger error

This commit is contained in:
PCoder 2018-04-16 00:29:43 +02:00
parent 896984ef1f
commit 1cb3fa80cf

View file

@ -52,7 +52,8 @@ class VMPricing(models.Model):
except Exception as e: except Exception as e:
logger.error( logger.error(
"Error getting VMPricing with name {name}. " "Error getting VMPricing with name {name}. "
"Details: {details}".format(name=name, details=str(e)) "Details: {details}. Attempting to return default"
"pricing.".format(name=name, details=str(e))
) )
pricing = VMPricing.get_default_pricing() pricing = VMPricing.get_default_pricing()
return pricing return pricing