-
-
Save daviddavis/04eed3d374a01cad34cbe97bb1222794 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/server/pulp/server/db/migrations/0029_applicability_schema_change.py b/server/pulp/server/db/migrations/0029_applicability_schema_change.py | |
index 075acd3..ab6a9e8 100644 | |
--- a/server/pulp/server/db/migrations/0029_applicability_schema_change.py | |
+++ b/server/pulp/server/db/migrations/0029_applicability_schema_change.py | |
@@ -51,7 +51,7 @@ def migrate(*args, **kwargs): | |
try: | |
rpa_collection.drop_index("profile_hash_-1_repo_id_-1") | |
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 | |
pass | |
else: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment