Skip to content

Commit

Permalink
Update __init__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
yehoshuadimarsky committed Aug 6, 2019
1 parent c832ca0 commit f3b2fcf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bcpandas/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
cmds = [['bcp','-v'], ['sqlcmd','-?']]
for cmd in cmds:
try:
res = subprocess.run(cmd)
subprocess.run(cmd)
except FileNotFoundError:
warnings.warn(f"{cmd[0].upper()} utility not installed or not found in PATH, bcpandas will not work!")

del subprocess, warnings, cmd, res
del subprocess, warnings, cmd

0 comments on commit f3b2fcf

Please sign in to comment.