Skip to content
Snippets Groups Projects
Commit 1661bc28 authored by Bruce Cowan's avatar Bruce Cowan :airplane:
Browse files

Fix flakes issues

parent 53c17871
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -21,12 +21,14 @@ from threading import Timer
from dateparser import parse
from errbot import BotPlugin, botcmd
class ReminderType:
def __init__(self, message, time, text):
self.message = message
self.time = time
self.text = text
class Reminder(BotPlugin):
"""Allows reminder functionality"""
......@@ -137,7 +139,7 @@ class Reminder(BotPlugin):
new = ReminderType(message, time, text)
try:
self._set_reminder(reminder, idx)
self._set_reminder(new, idx)
except ValueError:
return "**Error**: Bot cannot time travel (yet)"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment