Skip to content

Instantly share code, notes, and snippets.

Created December 4, 2018 21:51
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
diff --git a/server/pulp/server/db/migrations/ b/server/pulp/server/db/migrations/
index 075acd3..ab6a9e8 100644
--- a/server/pulp/server/db/migrations/
+++ b/server/pulp/server/db/migrations/
@@ -51,7 +51,7 @@ def migrate(*args, **kwargs):
except pymongo.errors.OperationFailure as e:
- if e.code == 27:
+ if not e.code or e.code == 27:
# index not found - good, it's been removed before
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment