Skip to content

Commit

Permalink
In basic mode, do not display the label information on IDNA 2008 non-…
Browse files Browse the repository at this point in the history
…compliance
  • Loading branch information
j-bernard committed Oct 2, 2023
1 parent 1bfd45b commit 8bec5de
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/lgr_basic/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,10 @@ def launch_collision_task():
# task has not been launched as there is only one label,
# but it should finally be computed in background
launch_collision_task()
results.append(res)
if res['conversion_error']:
messages.add_message(self.request, messages.ERROR, res['a_label'])
else:
results.append(res)
except UnicodeError as ex:
messages.add_message(self.request, messages.ERROR, lgr_exception_to_text(ex))
except NeedAsyncProcess:
Expand Down

0 comments on commit 8bec5de

Please sign in to comment.