Skip to content

Commit 14f4af8

Browse files
committed
Move a source code comment to proper position
Comment became unclear with commit 9b5bd94.
1 parent bbf0389 commit 14f4af8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

flask_sqlalchemy/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -864,8 +864,6 @@ def apply_driver_hacks(self, app, info, options):
864864
elif info.drivername == 'sqlite':
865865
pool_size = options.get('pool_size')
866866
detected_in_memory = False
867-
# we go to memory and the pool size was explicitly set to 0
868-
# which is fail. Let the user know that
869867
if info.database in (None, '', ':memory:'):
870868
detected_in_memory = True
871869
from sqlalchemy.pool import StaticPool
@@ -874,6 +872,8 @@ def apply_driver_hacks(self, app, info, options):
874872
options['connect_args'] = {}
875873
options['connect_args']['check_same_thread'] = False
876874

875+
# we go to memory and the pool size was explicitly set
876+
# to 0 which is fail. Let the user know that
877877
if pool_size == 0:
878878
raise RuntimeError('SQLite in memory database with an '
879879
'empty queue not possible due to data '

0 commit comments

Comments
 (0)