mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-10 21:10:55 +08:00
Migrate to Github Action CI (#507)
* Some small refactors * Initial test script * Fixes django matrix * Trying to set up Disque * Disque as a docker service * lowercase action name * Remove Travis * Replaces Travis badge with Github actions badge * Show django version in step * Typo
This commit is contained in:
@@ -4,7 +4,6 @@ from botocore.client import ClientError
|
||||
from django_q.brokers import Broker
|
||||
from django_q.conf import Conf
|
||||
|
||||
|
||||
QUEUE_DOES_NOT_EXIST = "AWS.SimpleQueueService.NonExistentQueue"
|
||||
|
||||
|
||||
@@ -77,7 +76,7 @@ class Sqs(Broker):
|
||||
# exist try to create it.
|
||||
return self.sqs.get_queue_by_name(QueueName=self.list_key)
|
||||
except ClientError as exp:
|
||||
if not exp.response["Error"]["Code"] == QUEUE_DOES_NOT_EXIST:
|
||||
if exp.response["Error"]["Code"] != QUEUE_DOES_NOT_EXIST:
|
||||
raise exp
|
||||
|
||||
return self.sqs.create_queue(QueueName=self.list_key)
|
||||
|
||||
Reference in New Issue
Block a user