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:
parent
383795b550
commit
48be2266ed
@ -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"""
|
||||
|
Loading…
Reference in New Issue
Block a user