summaryrefslogtreecommitdiff
path: root/swiftclient/shell.py
diff options
context:
space:
mode:
Diffstat (limited to 'swiftclient/shell.py')
-rwxr-xr-xswiftclient/shell.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/swiftclient/shell.py b/swiftclient/shell.py
index 29b3457..4438e9d 100755
--- a/swiftclient/shell.py
+++ b/swiftclient/shell.py
@@ -763,6 +763,9 @@ def st_upload(parser, args, output_manager):
return
options.segment_size = str((1024 ** size_mod) * multiplier)
+ if int(options.segment_size) <= 0:
+ output_manager.error("segment-size should be positive")
+ return
_opts = vars(options)
_opts['object_uu_threads'] = options.object_threads