From e011d9cf24895b1465ce2adbcd94981360b5f7af Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Thu, 8 Oct 2015 03:08:37 +0000 Subject: Upgrade to new way of doing WSGI. Silence ten zillion deprecation warnings: Django 1.8 has a really obscure way of saying "Please don't import your models into your apps' __init__.py files, thanks." svn path=/branches/tk705/; revision=6101 --- rpki/pubdb/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rpki/pubdb/models.py') diff --git a/rpki/pubdb/models.py b/rpki/pubdb/models.py index ce42c688..c6196eab 100644 --- a/rpki/pubdb/models.py +++ b/rpki/pubdb/models.py @@ -249,7 +249,7 @@ class Delta(models.Model): raise rpki.exceptions.ExistingObjectAtURI("Object already published at %s" % uri) else: raise rpki.exceptions.DifferentObjectAtURI("Found different object at %s (old %s, new %s)" % (uri, obj.hash, hash)) - except rpki.pubdb.PublishedObject.DoesNotExist: + except rpki.pubdb.models.PublishedObject.DoesNotExist: pass logger.debug("Publishing %s", uri) PublishedObject.objects.create(session = self.session, client = client, der = der, uri = uri, -- cgit v1.2.3