From a037108cf373eb2195a92cb51ecfb87e017b873b Mon Sep 17 00:00:00 2001 From: liuzheng712 Date: Tue, 23 Feb 2016 14:23:07 +0800 Subject: [PATCH] refactor: double meaning --- juser/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/juser/views.py b/juser/views.py index 1b85019be..64535f3fe 100644 --- a/juser/views.py +++ b/juser/views.py @@ -466,7 +466,7 @@ def down_key(request): f.close() response = HttpResponse(data, content_type='application/octet-stream') response['Content-Disposition'] = 'attachment; filename=%s' % os.path.basename(private_key_file) - os.unlink(private_key_file) # delete it + os.unlink(private_key_file) return response return HttpResponse('No Key File. Contact Admin.')