Skip to content

Commit 60c23fb

Browse files
Remove unnecessary file close
1 parent 1d53ca1 commit 60c23fb

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

deepface/modules/recognition.py

-2
Original file line numberDiff line numberDiff line change
@@ -115,12 +115,10 @@ def find(
115115
if not os.path.exists(datastore_path):
116116
with open(datastore_path, "wb") as f:
117117
pickle.dump([], f)
118-
f.close()
119118

120119
# Load the representations from the pickle file
121120
with open(datastore_path, "rb") as f:
122121
representations = pickle.load(f)
123-
f.close()
124122

125123
# Check if the representations are out-of-date
126124
if len(representations) > 0:

0 commit comments

Comments
 (0)