[Update] 创建Host Key

pull/2364/head
ibuler 2019-01-29 12:27:51 +08:00
parent 0d0cf04543
commit 9d78f26807
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ def auto_generate_terminal_host_key(sender, **kwargs):
try:
if Setting.objects.filter(name='TERMINAL_HOST_KEY').exists():
return
except ProgrammingError:
except:
return
private_key, public_key = ssh_key_gen()
value = json.dumps(private_key)