Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
pyfs
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
pyfs
Commits
e24d7a4a
Commit
e24d7a4a
authored
Dec 19, 2010
by
willmcgugan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tweaks. Going to bed now. Hope I haven't frakked up the tests
parent
b6c21954
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
fs/sftpfs.py
+4
-4
No files found.
fs/sftpfs.py
View file @
e24d7a4a
...
...
@@ -141,7 +141,7 @@ class SFTPFS(FS):
except
paramiko
.
SSHException
:
pass
if
not
connection
.
is_authenticated
():
el
if
not
connection
.
is_authenticated
():
if
not
username
:
username
=
getuser
()
try
:
...
...
@@ -158,16 +158,16 @@ class SFTPFS(FS):
try
:
connection
.
auth_none
(
username
)
except
paramiko
.
BadAuthenticationType
,
e
:
connection
.
close
()
self
.
close
()
allowed
=
', '
.
join
(
e
.
allowed_types
)
raise
RemoteConnectionError
(
msg
=
'no auth - server requires one of the following:
%
s'
%
allowed
,
details
=
e
)
if
not
connection
.
is_authenticated
():
connection
.
close
()
self
.
close
()
raise
RemoteConnectionError
(
msg
=
'no auth'
)
except
paramiko
.
SSHException
,
e
:
connection
.
close
()
self
.
close
()
raise
RemoteConnectionError
(
msg
=
'SSH exception (
%
s)'
%
str
(
e
),
details
=
e
)
self
.
_transport
=
connection
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment