- changed status to resolved
_add_bind() not covered / doesn't import exception
Issue #3798
resolved
from sqlalchemy.orm import Session
s = Session()
s.bind_mapper("boom", "Foo")
python test.py
Traceback (most recent call last):
File "test.py", line 5, in <module>
s.bind_mapper("boom", "Foo")
File "/home/classic/dev/sqlalchemy/lib/sqlalchemy/orm/session.py", line 1150, in bind_mapper
self._add_bind(mapper, bind)
File "/home/classic/dev/sqlalchemy/lib/sqlalchemy/orm/session.py", line 1125, in _add_bind
raise exc.ArgumentError(
AttributeError: 'module' object has no attribute 'ArgumentError'
Comments (2)
-
reporter -
reporter Fix ArgumentError access in Session._add_bind
Fixes:
#3798Change-Id: Ib4e6344b599e871f9d46d36a5aeb7ba3104dc99b Pull-request: https://github.com/zzzeek/sqlalchemy/pull/293 (cherry picked from commit 7ea54611516147a1af917691c60e1823b77c7ecf)→ <<cset e96483cfef13>>
- Log in to comment
Fix ArgumentError access in Session._add_bind
Fixes:
#3798Change-Id: Ib4e6344b599e871f9d46d36a5aeb7ba3104dc99b Pull-request: https://github.com/zzzeek/sqlalchemy/pull/293→ <<cset 7ea546115161>>