catch 'send' of non-file/non-directory
This commit is contained in:
parent
8079340bff
commit
99ff75259a
|
@ -87,4 +87,6 @@ def _build_phase1_data(args):
|
||||||
}
|
}
|
||||||
print("Sending directory (%d bytes compressed) named '%s'"
|
print("Sending directory (%d bytes compressed) named '%s'"
|
||||||
% (filesize, basename))
|
% (filesize, basename))
|
||||||
|
else:
|
||||||
|
raise TypeError("'%s' is neither file nor directory" % args.what)
|
||||||
return phase1, fd_to_send
|
return phase1, fd_to_send
|
||||||
|
|
Loading…
Reference in New Issue
Block a user