From bdb900a49e1e057c0c4a3af2a22c4684470d6e33 Mon Sep 17 00:00:00 2001 From: Matthias Mair Date: Thu, 11 Jul 2024 22:45:06 +0200 Subject: [PATCH] define exception --- src/backend/InvenTree/stock/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/InvenTree/stock/models.py b/src/backend/InvenTree/stock/models.py index 6008f8cf59..ab715592b9 100644 --- a/src/backend/InvenTree/stock/models.py +++ b/src/backend/InvenTree/stock/models.py @@ -1773,7 +1773,7 @@ class StockItem( price = convert_money(price, base_currency) total_price += price * qty quantity += qty - except: + except Exception: # Skip this entry, cannot convert to base currency continue