Skip to content

Fail to load some places #80

@vicpsl

Description

@vicpsl

Some places cannot be loaded and also fail navigation in the search results pagination.

Places with descriptions (table: place_description, column: content) containing an unbalanced parenthesis cause a Python regex exception:

Python failing at: file "./app/api/place_description/facade.py", line 62
Python code failing: res['attributes']['content'] = re.sub(match, rewrite_link_target(insee_code, label), res['attributes']['content'])
Python failing with error: source.error("unbalanced parenthesis")

Example:

loading place P88740001 returns empty screen and XHR error:
image

This is due to the following description:

image

The unbalanced closing bracket within the tag fails regex.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions