Skip to content
Snippets Groups Projects
Commit 6fc169d0 authored by Erwan Rouchet's avatar Erwan Rouchet Committed by Bastien Abadie
Browse files

Ignore import errors in API URLs check

parent dcefb488
No related branches found
No related tags found
1 merge request!1927Ignore import errors in API URLs check
......@@ -38,7 +38,16 @@ def api_urls_check(*args, **kwargs):
except those that end with a <path:…> parameter,
since the ending slash would become part of the parameter.
'''
from arkindex.project.api_v1 import api
try:
from arkindex.project.api_v1 import api
except ImportError as e:
return [
Error(
f'Cannot import API URLs: {e}',
id='arkindex.E001',
)
]
return [
Error(
'This API URL misses a mandatory ending /',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment