diff --git a/webinterface.py b/webinterface.py index 975370d4..0b8b3476 100644 --- a/webinterface.py +++ b/webinterface.py @@ -1795,8 +1795,13 @@ def insertQuestion(baseDir: str,translate: {}, \ votesFilename= \ baseDir+'/accounts/'+nickname+'@'+domain+'/questions.txt' - - if messageId not in open(votesFilename).read(): + + showQuestion=True + if os.path.isfile(votesFilename): + if messageId not in open(votesFilename).read(): + showQuestion=False + + if showQuestion: # show the question options content+='
' content+='
'