Skip to content

Commit

Permalink
Always define 'data' local var
Browse files Browse the repository at this point in the history
  • Loading branch information
shin- committed Aug 1, 2014
1 parent c8b0a8f commit daa3d7d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docker_registry/images.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,7 @@ def load_checksums(image_id):
@app.route('/v1/images/<image_id>/json', methods=['PUT'])
@toolkit.requires_auth
def put_image_json(image_id):
data = None
try:
# Note(dmp): unicode patch
data = json.loads(flask.request.data.decode('utf8'))
Expand Down

0 comments on commit daa3d7d

Please sign in to comment.