diff --git a/pinax/notifications/engine.py b/pinax/notifications/engine.py index 61cffc89..4f0bf525 100644 --- a/pinax/notifications/engine.py +++ b/pinax/notifications/engine.py @@ -37,6 +37,9 @@ def acquire_lock(*args): def send_all(*args): lock = acquire_lock(*args) + if lock is None: + logging.debug("no lock acquired. skipping sending.") + return batches, sent, sent_actual = 0, 0, 0 start_time = time.time() diff --git a/pinax/notifications/tests/tests.py b/pinax/notifications/tests/tests.py deleted file mode 100644 index 4eda25be..00000000 --- a/pinax/notifications/tests/tests.py +++ /dev/null @@ -1,7 +0,0 @@ -from django.test import TestCase - - -class Tests(TestCase): - - def setUp(self): - pass