Fix title handling. For real this time. I hope.
This commit is contained in:
parent
85d8ff947d
commit
c048395394
1 changed files with 2 additions and 1 deletions
|
@ -8,6 +8,7 @@ import os
|
|||
import glob
|
||||
import hashlib
|
||||
import time
|
||||
import re
|
||||
|
||||
HTTP200 = "200 OK"
|
||||
HTTP202 = "202 Accepted"
|
||||
|
@ -43,7 +44,7 @@ def addjob(req):
|
|||
|
||||
try:
|
||||
title = re.sub(r"[^a-zA-Z0-9_\-]", "_", req.args["title"][0]) or "output"
|
||||
except:
|
||||
except Exception as e:
|
||||
title = "output"
|
||||
|
||||
try:
|
||||
|
|
Loading…
Reference in a new issue