Skip to content
This repository was archived by the owner on Sep 12, 2018. It is now read-only.

Commit 94ff91c

Browse files
committed
Don't forget to close file after read
1 parent f2d2097 commit 94ff91c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docker_registry/lib/config.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ def _init():
120120
except Exception:
121121
raise exceptions.ConfigError(
122122
'Key at %s is not a valid RSA key' % conf.privileged_key)
123+
f.close()
123124

124125
if conf.index_endpoint:
125126
conf.index_endpoint = conf.index_endpoint.strip('/')

0 commit comments

Comments
 (0)