diff options
author | infirit <[email protected]> | 2014-10-13 16:56:24 +0200 |
---|---|---|
committer | infirit <[email protected]> | 2014-10-13 16:56:24 +0200 |
commit | 377761bf440ce5d41edda78b23b1c0cfb7538507 (patch) | |
tree | 65b71c221f0d345902a38f917fe06f70056a670d /tools | |
parent | 3d32c0108124d82af989f73eb4d8a6ffe62f3393 (diff) | |
download | mate-desktop-377761bf440ce5d41edda78b23b1c0cfb7538507.tar.bz2 mate-desktop-377761bf440ce5d41edda78b23b1c0cfb7538507.tar.xz |
mpaste: fix case when title is None
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/mpaste | 2 |
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 |