Raise error if it's not about loops, refs #1802

This commit is contained in:
Simon Willison 2022-09-05 17:44:44 -07:00
commit d80775a48d

View file

@ -240,6 +240,8 @@ class Datasette:
loop = asyncio.new_event_loop()
asyncio.set_event_loop(loop)
self._refresh_schemas_lock = asyncio.Lock()
else:
raise
self.crossdb = crossdb
self.nolock = nolock
if memory or crossdb or not self.files: