mirror of
https://github.com/kovidgoyal/kitty.git
synced 2024-09-21 19:47:21 +03:00
...
This commit is contained in:
parent
0e2125cda3
commit
a3e59697a1
@ -11,6 +11,7 @@
|
||||
import tarfile
|
||||
import tempfile
|
||||
import time
|
||||
import traceback
|
||||
from base64 import standard_b64decode
|
||||
from contextlib import suppress
|
||||
from typing import (
|
||||
@ -124,6 +125,7 @@ def fmt_prefix(msg: Any) -> bytes:
|
||||
pw = md['pw']
|
||||
pwfilename = md['pwfile']
|
||||
except Exception:
|
||||
traceback.print_exc()
|
||||
yield fmt_prefix('!invalid ssh data request message')
|
||||
else:
|
||||
try:
|
||||
@ -133,7 +135,6 @@ def fmt_prefix(msg: Any) -> bytes:
|
||||
if pw != env_data['pw']:
|
||||
raise ValueError('Incorrect password')
|
||||
except Exception:
|
||||
import traceback
|
||||
traceback.print_exc()
|
||||
yield fmt_prefix('!incorrect ssh data password')
|
||||
else:
|
||||
@ -141,6 +142,7 @@ def fmt_prefix(msg: Any) -> bytes:
|
||||
try:
|
||||
data = make_tarfile(resolved_ssh_opts, env_data['env'])
|
||||
except Exception:
|
||||
traceback.print_exc()
|
||||
yield fmt_prefix('!error while gathering ssh data')
|
||||
else:
|
||||
from base64 import standard_b64encode
|
||||
|
Loading…
Reference in New Issue
Block a user