Ensure var in parseOptions are defined

Caused a bug on morss.it's server
master
pictuga 2013-09-15 15:56:08 +02:00
parent 75b51fc2c2
commit 9252e75923
1 changed files with 3 additions and 0 deletions

View File

@ -78,6 +78,9 @@ def setContent(item, txt):
item.content = txt
def parseOptions():
url = ''
options = []
if 'REQUEST_URI' in os.environ:
url = os.environ['REQUEST_URI'][1:]