We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f349f24 commit ce26c08Copy full SHA for ce26c08
listenbrainz/webserver/views/api.py
@@ -809,7 +809,12 @@ def get_artist_radio_recordings(seed_artist_mbid):
809
log_raise_400("Seed artist mbid is not a valid UUID.")
810
811
max_similar_artists = _parse_int_arg("max_similar_artists")
812
+ if max_similar_artists is None:
813
+ raise APIBadRequest("Argument max_similar_artists must be specified.")
814
+
815
max_recordings_per_artist = _parse_int_arg("max_recordings_per_artist")
816
+ if max_recordings_per_artist is None:
817
+ raise APIBadRequest("Argument max_recordings_per_artist must be specified.")
818
819
mode = request.args.get("mode")
820
if mode is None:
0 commit comments