catch 'send' of non-file/non-directory

This commit is contained in:
Brian Warner 2016-02-17 09:31:55 -08:00
parent 8079340bff
commit 99ff75259a

View File

@ -87,4 +87,6 @@ def _build_phase1_data(args):
}
print("Sending directory (%d bytes compressed) named '%s'"
% (filesize, basename))
else:
raise TypeError("'%s' is neither file nor directory" % args.what)
return phase1, fd_to_send