lint: Fix % comprehensions being used without a tuple.
This commit is contained in:
parent
d5690c80c9
commit
58a5de0377
|
@ -87,7 +87,7 @@ def get_xkcd_bot_response(message):
|
|||
except XkcdNotFoundError:
|
||||
logging.exception('XKCD server responded 404 when trying to fetch comic with id %s'
|
||||
% (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:
|
||||
return ("#%s: **%s**\n[%s](%s)" % (fetched['num'],
|
||||
fetched['title'],
|
||||
|
|
|
@ -143,7 +143,7 @@ def send_reminders():
|
|||
key = (id, start)
|
||||
if key not in sent:
|
||||
if start.hour == 0 and start.minute == 0:
|
||||
line = '%s is today.' % (summary)
|
||||
line = '%s is today.' % (summary,)
|
||||
else:
|
||||
line = '%s starts at %s' % (summary, start.strftime('%H:%M'))
|
||||
print('Sending reminder:', line)
|
||||
|
|
Loading…
Reference in a new issue