Improved message output.

This commit is contained in:
Bastian Kleineidam 2013-04-09 22:13:38 +02:00
parent 30895b5693
commit eb7247623b

4
dosage
View file

@ -204,11 +204,11 @@ def vote(scraperobj):
out.debug('Vote answer %r' % answer) out.debug('Vote answer %r' % answer)
if answer == 'counted': if answer == 'counted':
url = configuration.Url + 'comics/%s.html' % name.replace('/', '_') url = configuration.Url + 'comics/%s.html' % name.replace('/', '_')
out.info('Vote submitted. Votes are updated daily at %s.' % url) out.info('Vote submitted. Votes are updated regularly at %s.' % url)
elif answer == 'no': elif answer == 'no':
out.info('Vote not submitted - your vote has already been submitted before.') out.info('Vote not submitted - your vote has already been submitted before.')
elif answer == 'noname': elif answer == 'noname':
out.warn('The comic %s cannot be voted anymore.' % name) out.warn('The comic %s cannot be voted.' % name)
else: else:
out.warn('Error submitting vote parameters: %r' % answer) out.warn('Error submitting vote parameters: %r' % answer)
except Exception as msg: except Exception as msg: