wrapper backend DatabaseWrapper wrapper _cursor thread_settings try wr

1
2
3
4
5
6
7
- wrapper = backend.DatabaseWrapper()
- wrapper._cursor(thread_settings)
+ try:
+ wrapper = backend.DatabaseWrapper()
+ wrapper._cursor(thread_settings)
+ except TypeError:
+ wrapper = backend.DatabaseWrapper(database)