mirror of
https://github.com/sherlock-project/sherlock
synced 2024-11-15 08:47:08 +00:00
Ensure raw file is automatically closed
This commit is contained in:
parent
f0b4365f7c
commit
10582b629e
1 changed files with 2 additions and 2 deletions
|
@ -30,8 +30,8 @@ def main():
|
|||
|
||||
|
||||
print("\033[1;92m[\033[0m\033[1;77m*\033[0m\033[1;92m] Checking username\033[0m\033[1;37m {}\033[0m\033[1;92m on: \033[0m".format(username))
|
||||
raw = open("data.json", "r")
|
||||
data = json.load(raw)
|
||||
with open("data.json", "r") as raw:
|
||||
data = json.load(raw)
|
||||
|
||||
# User agent is needed because some sites does not
|
||||
# return the correct information because it thinks that
|
||||
|
|
Loading…
Reference in a new issue