forked from indymedia/epicyon
Check that questions file exists
parent
079095341a
commit
9fc251c11f
|
@ -194,6 +194,7 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
self.server.baseDir+'/accounts/'+ \
|
self.server.baseDir+'/accounts/'+ \
|
||||||
nickname+'@'+self.server.domain+'/questions.txt'
|
nickname+'@'+self.server.domain+'/questions.txt'
|
||||||
|
|
||||||
|
if os.path.isfile(votesFilename):
|
||||||
# have we already voted on this?
|
# have we already voted on this?
|
||||||
if messageId in open(votesFilename).read():
|
if messageId in open(votesFilename).read():
|
||||||
print('Already voted on message '+messageId)
|
print('Already voted on message '+messageId)
|
||||||
|
|
Loading…
Reference in New Issue