Skip to content

Commit 86cf15c

Browse files
committed
Fixed some bugs in the EncryptedTextField class.
- Legacy-Id: 6246
1 parent 0016c69 commit 86cf15c

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

ietf/nomcom/fields.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from django.utils.encoding import smart_str
44

55
from ietf.utils.pipe import pipe
6-
6+
from ietf.utils.log import log
77

88
class EncryptedException(Exception):
99
pass
@@ -19,10 +19,10 @@ def pre_save(self, instance, add):
1919
except ValueError as e:
2020
raise ValueError("Trying to read the NomCom public key: " + str(e))
2121

22-
code, out, error = pipe("%s smime -encrypt -in /dev/stdin %s" % (settings.OPENSSL_COMMAND,
23-
cert_file), comments)
22+
command = "%s smime -encrypt -in /dev/stdin %s" % (settings.OPENSSL_COMMAND, cert_file)
23+
code, out, error = pipe(command, comments)
2424
if code != 0:
25-
log("openssl error: %s:\n Error %s: %s" %(command, code, error))
25+
log("openssl error: %s:\n Error %s: %s" %(command, code, error))
2626
if not error:
2727
instance.comments = out
2828
return out

0 commit comments

Comments
 (0)