diff --git a/src/wormhole/scripts/cmd_send.py b/src/wormhole/scripts/cmd_send.py index 53dca34..141146a 100644 --- a/src/wormhole/scripts/cmd_send.py +++ b/src/wormhole/scripts/cmd_send.py @@ -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