Commit 441a2d31 authored by Leonidas Poulopoulos's avatar Leonidas Poulopoulos
Browse files

Prevented a bug that would cause the rule application to throw exception

parent 15d4014d
......@@ -7,11 +7,8 @@ from celery.task.http import *
import beanstalkc
from django.conf import settings
import datetime
from flowspy.flowspec.models import *
from django.core.mail import send_mail
from flowspy.flowspec.models import *
from django.template.loader import render_to_string
from django.contrib.sites.models import Site
from django.core.urlresolvers import reverse
import os
......@@ -139,6 +136,8 @@ def check_sync(route_name=None, selected_routes = []):
def notify_expired():
from flowspy.flowspec.models import *
from django.contrib.sites.models import Site'Initializing expiration notification')
routes = Route.objects.all()
for route in routes:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment