diff options
author | VG <vg@devys.org> | 2014-11-29 16:30:06 +0100 |
---|---|---|
committer | VG <vg@devys.org> | 2014-11-29 16:30:06 +0100 |
commit | 953309ddde4477adfafd0e74d0fca074eeb63607 (patch) | |
tree | f29cbb0b8fb21deb89bedbff1cb599483b86ee3b /pasteme.py | |
parent | 4475362294e6c8fd0df4f19c035bed81e595671c (diff) | |
download | pasteme-953309ddde4477adfafd0e74d0fca074eeb63607.tar.gz pasteme-953309ddde4477adfafd0e74d0fca074eeb63607.tar.bz2 pasteme-953309ddde4477adfafd0e74d0fca074eeb63607.zip |
fix alignment pb on floating menu and add cosmetic changes
Diffstat (limited to 'pasteme.py')
-rwxr-xr-x | pasteme.py | 9 |
1 files changed, 2 insertions, 7 deletions
@@ -21,13 +21,8 @@ def route_root(): @bottle.route('/', method='POST') def route_paste_post(): - content = bottle.request.forms.getunicode('content', '') - - try: - pid = identigen.generate(content) - except AttributeError as e: - print(e) - bottle.abort(400) + content = bottle.request.forms.getunicode('content', '') or '' + pid = identigen.generate(content) path = pathbase / pid with path.open(mode='wb') as fd: fd.write(content.encode('utf8')) |