Skip to content

Commit

Permalink
Input vulnerability
Browse files Browse the repository at this point in the history
  • Loading branch information
danielfleischer committed Apr 19, 2023
1 parent 1f1e78b commit 056c1c6
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions libs/colbert/colbert/utils/runs.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,7 @@ def init(self, rank, root, experiment, name):
if os.path.exists(self.path):
print("\n\n")
print_message("It seems that ", self.path, " already exists.")
print_message("Do you want to overwrite it? \t yes/no \n")

# TODO: This should timeout and exit (i.e., fail) given no response for 60 seconds.

response = input()
if response.strip() != "yes":
assert not os.path.exists(self.path), self.path
assert not os.path.exists(self.path), self.path
else:
create_directory(self.path)

Expand Down

0 comments on commit 056c1c6

Please sign in to comment.