Skip to content

Commit

Permalink
Fix typo exposed by previous commit. :oops:
Browse files Browse the repository at this point in the history
  • Loading branch information
lukewrites committed Dec 15, 2023
1 parent 80f30ac commit 60d51d6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tdvt/tdvt/setup_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,10 +246,10 @@ def mangle_tds(file_path, connection_password_name):
print('Modifying ' + file_path)
try:
with open(file_path, 'r') as f:
new_tds = updated_tds_as_str(f, connection_password_name)
f = open(file_path, 'w')
f.write(new_tds)
f.close()
new_tds = updated_tds_as_str(f, connection_password_name)
f = open(file_path, 'w')
f.write(new_tds)
f.close()
except IOError as e:
print(e)
return
Expand Down

0 comments on commit 60d51d6

Please sign in to comment.