fix(core): use logger exception

This commit is contained in:
smypmsa
2025-08-05 16:09:05 +00:00
parent 83a7f9e4ad
commit 874d148777
13 changed files with 60 additions and 63 deletions
+3 -3
View File
@@ -60,7 +60,7 @@ class LetsBonkCurveManager(CurveManager):
return pool_state_data
except Exception as e:
logger.error(f"Failed to get pool state: {e!s}")
logger.exception("Failed to get pool state")
raise ValueError(f"Invalid pool state: {e!s}")
async def calculate_price(self, pool_address: Pubkey) -> float:
@@ -239,6 +239,6 @@ class LetsBonkCurveManager(CurveManager):
return True
except Exception as e:
logger.error(f"Pool state validation failed: {e}")
except Exception:
logger.exception("Pool state validation failed")
return False