Skip to content

Commit

Permalink
Merge branch 'hotfix/3721_article_not_acceptable_catch_with_error'
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven-Eardley committed Oct 18, 2023
2 parents 2ef3428 + 43b8c9e commit 361d48b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions portality/view/publisher.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

from portality.app_email import EmailException
from portality import models
from portality.bll.exceptions import AuthoriseException, ArticleMergeConflict, DuplicateArticleException
from portality.bll.exceptions import AuthoriseException, ArticleMergeConflict, DuplicateArticleException, ArticleNotAcceptable
from portality.decorators import ssl_required, restrict_to_role, write_required
from portality.dao import ESMappingMissingError
from portality.forms.application_forms import ApplicationFormFactory
Expand Down Expand Up @@ -362,7 +362,8 @@ def metadata():
Messages.flash(Messages.ARTICLE_METADATA_MERGE_CONFLICT)
except DuplicateArticleException:
Messages.flash(Messages.ARTICLE_METADATA_UPDATE_CONFLICT)

except ArticleNotAcceptable as e:
Messages.flash_with_param(e.message, "error")
return fc.render_template(validated=validated)


Expand Down

0 comments on commit 361d48b

Please sign in to comment.