Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
funkwhale
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
EorlBruder
funkwhale
Commits
899ba311
Verified
Commit
899ba311
authored
Apr 17, 2018
by
Agate
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not fail on library page scan if one item is invalid
parent
852bed6f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
api/funkwhale_api/federation/serializers.py
api/funkwhale_api/federation/serializers.py
+4
-2
No files found.
api/funkwhale_api/federation/serializers.py
View file @
899ba311
...
...
@@ -616,10 +616,12 @@ class CollectionPageSerializer(serializers.Serializer):
if
not
item_serializer
:
return
v
raw_items
=
[
item_serializer
(
data
=
i
,
context
=
self
.
context
)
for
i
in
v
]
valid_items
=
[]
for
i
in
raw_items
:
i
.
is_valid
(
raise_exception
=
True
)
if
i
.
is_valid
():
valid_items
.
append
(
i
)
return
raw
_items
return
valid
_items
def
to_representation
(
self
,
conf
):
page
=
conf
[
'page'
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment