- changed status to resolved
TypeError in sqlalchemy.orm.strategy_options.Load.__str__ under certain conditions
Issue #3539
resolved
The __str__
method for this class is defined on line 182 here:
I encountered this logging error:
TypeError: not all arguments converted during string formatting
Upon inspection, the value of self.strategy
was
(('deferred', False), ('instrument', True))
The really strange thing is that I only saw this error when trying to configure logging. Up until this point, I had been using create_engine(echo=True)
and never encountered this error.
Comments (4)
-
repo owner -
repo owner - Fixed rare TypeError which could occur when stringifying certain
kinds of internal column loader options within internal logging.
fixes
#3539
(cherry picked from commit 47fcb1d0b6ad6481e89d4b2e8c2cc29cf7c03d8b)
→ <<cset 560d20f00388>>
- Fixed rare TypeError which could occur when stringifying certain
kinds of internal column loader options within internal logging.
fixes
-
repo owner - changed milestone to 1.0.9
thank you!
-
reporter Thank you!
- Log in to comment
#3539→ <<cset 47fcb1d0b6ad>>