Skip to content

Commit 6936842

Browse files
committed
Run black formatter on base.py
1 parent c3ae658 commit 6936842

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/databricks/sqlalchemy/base.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -372,10 +372,7 @@ def is_disconnect(self, e, connection, cursor):
372372
# This catches errors like "Cannot create cursor from closed connection"
373373
if isinstance(e, Error):
374374
error_msg = str(e).lower()
375-
return (
376-
"closed" in error_msg
377-
or "cannot create cursor" in error_msg
378-
)
375+
return "closed" in error_msg or "cannot create cursor" in error_msg
379376

380377
return False
381378

0 commit comments

Comments
 (0)