summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorinfirit <[email protected]>2014-10-13 16:56:24 +0200
committerinfirit <[email protected]>2014-10-13 16:56:24 +0200
commit377761bf440ce5d41edda78b23b1c0cfb7538507 (patch)
tree65b71c221f0d345902a38f917fe06f70056a670d
parent3d32c0108124d82af989f73eb4d8a6ffe62f3393 (diff)
downloadmate-desktop-377761bf440ce5d41edda78b23b1c0cfb7538507.tar.bz2
mate-desktop-377761bf440ce5d41edda78b23b1c0cfb7538507.tar.xz
mpaste: fix case when title is None
-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