lint: Fix % comprehensions being used without a tuple.

This commit is contained in:
Tim Abbott 2017-01-09 11:45:11 -08:00
parent d5690c80c9
commit 58a5de0377
2 changed files with 2 additions and 2 deletions

View file

@ -87,7 +87,7 @@ def get_xkcd_bot_response(message):
except XkcdNotFoundError: except XkcdNotFoundError:
logging.exception('XKCD server responded 404 when trying to fetch comic with id %s' logging.exception('XKCD server responded 404 when trying to fetch comic with id %s'
% (command)) % (command))
return 'Sorry, there is likely no xkcd comic strip with id: #%s' % (command) return 'Sorry, there is likely no xkcd comic strip with id: #%s' % (command,)
else: else:
return ("#%s: **%s**\n[%s](%s)" % (fetched['num'], return ("#%s: **%s**\n[%s](%s)" % (fetched['num'],
fetched['title'], fetched['title'],

View file

@ -143,7 +143,7 @@ def send_reminders():
key = (id, start) key = (id, start)
if key not in sent: if key not in sent:
if start.hour == 0 and start.minute == 0: if start.hour == 0 and start.minute == 0:
line = '%s is today.' % (summary) line = '%s is today.' % (summary,)
else: else:
line = '%s starts at %s' % (summary, start.strftime('%H:%M')) line = '%s starts at %s' % (summary, start.strftime('%H:%M'))
print('Sending reminder:', line) print('Sending reminder:', line)