Fix incorrect error message when deleting invalid synonym.
Because P_tag was raising 404 with "no such tag" when we know it should have been "no such synonym".
This commit is contained in:
parent
22d2efa289
commit
6cb545af8b
1 changed files with 1 additions and 1 deletions
|
@ -140,7 +140,7 @@ def post_tag_delete_synonym():
|
|||
synonym = synonym.split('+')[-1].split('.')[-1]
|
||||
|
||||
try:
|
||||
master_tag = common.P_tag(synonym, response_type='json')
|
||||
master_tag = common.P.get_tag(name=synonym)
|
||||
except etiquette.exceptions.NoSuchTag as exc:
|
||||
raise etiquette.exceptions.NoSuchSynonym(*exc.given_args, **exc.given_kwargs)
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue