Skip to content

Commit

Permalink
Merge branch 'a285033184553995_asymmetric_encryption'
Browse files Browse the repository at this point in the history
  • Loading branch information
kroman0 committed Jul 7, 2017
2 parents 7ea2a8c + 21eae57 commit 37917fe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion openprocurement/planning/api/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,11 @@ def set_logging_context(event):
def extract_plan_adapter(request, plan_id):
db = request.registry.db
doc = db.get(plan_id)
if doc is None or doc.get('doc_type') != 'Plan':
if doc is not None and doc.get('doc_type') == 'plan':
request.errors.add('url', 'plan_id', 'Archived')
request.errors.status = 410
raise error_handler(request.errors)
elif doc is None or doc.get('doc_type') != 'Plan':
request.errors.add('url', 'plan_id', 'Not Found')
request.errors.status = 404
raise error_handler(request.errors)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from setuptools import setup, find_packages
import os

version = '2.3.8'
version = '2.3.9'

requires = [
'setuptools',
Expand Down

0 comments on commit 37917fe

Please sign in to comment.