1. Marc-Alexandre Chan
  2. DailyPromptBot

Commits

Marc-Alexandre Chan  committed e59480a

Fix variable name error in retry_event

  • Participants
  • Parent commits 000e8f4
  • Branches dev-minibot

Comments (0)

Files changed (1)

File minibot/eventscheduler.py

View file
         """
         self.prepare_event(event)
         r_time = self._next_run + event.delay
+        r_priority = priority
         try:
-            self._insert_event(r_time, priority, status, event)
+            self._insert_event(r_time, r_priority, status, event)
         except SchedulerStoppedError:
             self.logger.debug( # debug since called in exc handling
                 u"%s: Cannot queue retry during shutdown: "