Skip to content

Commit e2c723f

Browse files
Merge pull request #68 from tebeka/master
use not instead of ~
2 parents 2d0b221 + 473839d commit e2c723f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sql/magic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def execute(self, line, cell='', local_ns={}):
8686
try:
8787
result = sql.run.run(conn, parsed['sql'], self, user_ns)
8888

89-
if result is not None and ~isinstance(result, str) and self.column_local_vars:
89+
if result is not None and not isinstance(result, str) and self.column_local_vars:
9090
#Instead of returning values, set variables directly in the
9191
#users namespace. Variable names given by column names
9292

0 commit comments

Comments
 (0)