Skip to content

Commit 0181217

Browse files
committed
fixes pallets-eco#345, which prevents an empty dict being specified for the binds option
1 parent cea9679 commit 0181217

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flask_sqlalchemy/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ def __init__(self, db, autocommit=False, autoflush=True, app=None, **options):
153153
self.app = app = db.get_app()
154154
track_modifications = app.config['SQLALCHEMY_TRACK_MODIFICATIONS']
155155
bind = options.pop('bind', None) or db.engine
156-
binds = options.pop('binds', None) or db.get_binds(app)
156+
binds = options.pop('binds', db.get_binds(app))
157157

158158
if track_modifications is None or track_modifications:
159159
_SessionSignalEvents.register(self)

0 commit comments

Comments
 (0)