From 2983940d0f22f978a7d37a4d90132dd6e6a5dba9 Mon Sep 17 00:00:00 2001 From: PCoder Date: Wed, 13 Sep 2017 02:33:21 +0530 Subject: [PATCH] Removed unwanted code --- hosting/forms.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/hosting/forms.py b/hosting/forms.py index bcc957b9..36d05431 100644 --- a/hosting/forms.py +++ b/hosting/forms.py @@ -1,8 +1,8 @@ import datetime import logging +import os import subprocess import tempfile -import os from django import forms from django.contrib.auth import authenticate @@ -104,8 +104,7 @@ class UserHostingKeyForm(forms.ModelForm): ['ssh-keygen', '-lf', tmp_public_key_file.name]) except subprocess.CalledProcessError as cpe: logger.debug( - "Not a correct ssh format {error} {out}".format( - error=str(cpe), out=out)) + "Not a correct ssh format {error}".format(error=str(cpe))) raise forms.ValidationError(KEY_ERROR_MESSAGE) try: os.remove(tmp_public_key_file.name)