summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtools/mpaste2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/mpaste b/tools/mpaste
index 76548d3..08af04b 100755
--- a/tools/mpaste
+++ b/tools/mpaste
@@ -36,7 +36,7 @@ def build_paste(args, data):
values = {}
for opt, val in args.__dict__.items():
if opt == 'infile': continue
- if opt == 'title': values[opt] = val[:29]
+ if opt == 'title' and val: values[opt] = val[:29]
if val: values[opt] = val
values['data'] = data