Use e.error_message property
MODIFY
plextraktsync/decorators/retry.py
plextraktsync/decorators/retry.py
@@ -37,6 +37,8 @@ def wrapper(*args, **kwargs):
if isinstance(e, BadResponseException):
logger.error(f"Details: {e.details}")
+ if isinstance(e, TraktInternalException):
+ logger.error(f"Error message: {e.error_message}")
logger.error(
"API didn't respond properly, script will abort now. Please try again later."

Use e.error_message property