2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-04-28 11:36:44 +00:00

Remove unnecessary code (#8418)

This commit is contained in:
Oliver 2024-11-03 13:05:04 +11:00 committed by GitHub
parent 546bd945fc
commit b25b3493d9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,7 +1,6 @@
"""Order model definitions."""
import logging
import sys
from datetime import datetime
from decimal import Decimal
@ -151,9 +150,6 @@ class TotalPriceMixin(models.Model):
try:
total += line.quantity * convert_money(line.price, target_currency)
except MissingRate:
# Record the error, try to press on
_1, _2, _3 = sys.exc_info()
log_error('order.calculate_total_price')
logger.exception("Missing exchange rate for '%s'", target_currency)