Skip to content

Commit b119fa7

Browse files
orutherfurdmitsuhiko
authored andcommitted
export ORM exceptions, e.g.: db.NoResultFound
Signed-off-by: Armin Ronacher <armin.ronacher@active-4.com>
1 parent 9a5e7ae commit b119fa7

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

docs/_themes

Submodule _themes deleted from 77a1db5

flaskext/sqlalchemy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def _create_scoped_session(db):
5151

5252

5353
def _include_sqlalchemy(obj):
54-
for module in sqlalchemy, sqlalchemy.orm:
54+
for module in sqlalchemy, sqlalchemy.orm, sqlalchemy.orm.exc:
5555
for key in module.__all__:
5656
if not hasattr(obj, key):
5757
setattr(obj, key, getattr(module, key))

0 commit comments

Comments
 (0)