You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Sadly because of how I was handling errors I did not get the full traceback, I only got the following: "'TM1pyWriteFailureException' object has no attribute 'attempts'"
To Reproduce
I wasn't able to reproduce it, but because of the error handling problem, I have a theory.
In CellService.py, write_dataframe_async function, lines 970-971, python handles TM1pyWritePartialFailureException and TM1pyWriteFailureException in the same way, by adding them to failures/exceptions. Then in lines 980-983, a consolidated TM1pyWritePartialFailureException is raised, where in line 983, attempts are defined by attempts=sum([exception.attempts for exception in exceptions]. This trys to retrieve the attribute attempts from exception, however in Exceptions.py, TM1pyWritePartialFailureException has an attribute attempts but TM1pyWriteFailureException does not.
So to recreate this issue, I would imagine you would need to use the write_dataframe_async function and have an async executor raise a TM1pyWriteFailureException
Expected behavior
Async errors to be consolidated together and raised.
Version
TM1py 2.0.4
TM1 Server Version: 11.8.02500.3
The text was updated successfully, but these errors were encountered:
Describe the bug
Sadly because of how I was handling errors I did not get the full traceback, I only got the following: "'TM1pyWriteFailureException' object has no attribute 'attempts'"
To Reproduce
I wasn't able to reproduce it, but because of the error handling problem, I have a theory.
In CellService.py,
write_dataframe_async
function, lines 970-971, python handlesTM1pyWritePartialFailureException
andTM1pyWriteFailureException
in the same way, by adding them tofailures/exceptions
. Then in lines 980-983, a consolidatedTM1pyWritePartialFailureException
is raised, where in line 983, attempts are defined byattempts=sum([exception.attempts for exception in exceptions]
. This trys to retrieve the attributeattempts
fromexception
, however in Exceptions.py,TM1pyWritePartialFailureException
has an attributeattempts
butTM1pyWriteFailureException
does not.So to recreate this issue, I would imagine you would need to use the write_dataframe_async function and have an async executor raise a TM1pyWriteFailureException
Expected behavior
Async errors to be consolidated together and raised.
Version
TM1py 2.0.4
TM1 Server Version: 11.8.02500.3
The text was updated successfully, but these errors were encountered: