1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-23 19:22:32 +01:00

[deviantart] better error message for 'extended_fetch' (#585)

This commit is contained in:
Mike Fährmann 2020-01-30 15:25:33 +01:00
parent 383795b550
commit 48be2266ed
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

View File

@ -1026,8 +1026,12 @@ class DeviantartAPI():
"type" : kind,
"include_session": "false",
}
return self.extractor.request(
url, headers=headers, params=params, fatal=None).json()
response = self.extractor.request(
url, headers=headers, params=params, fatal=None)
if response.status_code == 404:
raise exception.StopExtraction(
"Your account must use the Eclipse interface.")
return response.json()
def deviation_metadata(self, deviations):
""" Fetch deviation metadata for a set of deviations"""