Skip to content

Commit

Permalink
Fix flake8 error
Browse files Browse the repository at this point in the history
  • Loading branch information
David Read committed Apr 12, 2019
1 parent b503679 commit b9bc3fb
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions ckan/migration/revision_legacy_code.py
Expand Up @@ -198,10 +198,6 @@ def _execute_with_revision(q, rev_table, context):
# It's easiest if this code works on all versions of CKAN. After CKAN 2.8 the
# revision model is separate from the main model.
# (RevisionTableMappings will be defined above)
try:
model.PackageRevision
# CKAN<=2.8
revision_model = model
except AttributeError:
# CKAN>2.8
revision_model = RevisionTableMappings.instance()

# CKAN<=2.8
revision_model = model

0 comments on commit b9bc3fb

Please sign in to comment.