Skip to content

Comments

Fix DeviantArt KeyError when download payload misses src#9083

Closed
harshang03 wants to merge 1 commit intomikf:masterfrom
harshang03:fix/9072-deviantart-download-src-guard
Closed

Fix DeviantArt KeyError when download payload misses src#9083
harshang03 wants to merge 1 commit intomikf:masterfrom
harshang03:fix/9072-deviantart-download-src-guard

Conversation

@harshang03
Copy link

Summary

  • make DeviantArt download handling resilient when API responses omit media source fields like src
  • convert missing-source download payloads into authorization failures instead of hard KeyError crashes
  • add fallback guards in related extractors and dedicated DeviantArt regression coverage for paywalled/forbidden targets

Testing

  • python3 -m unittest test.test_deviantart (fails in this environment: missing dependency 'requests')

Fixes #9072

Treat download payloads without media source fields as authorization failures and keep resilient media fallback behavior so one forbidden target does not crash whole runs. Includes related parser guards and regression tests.
@mikf mikf closed this Feb 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

deviantart error: KeyError: 'src'

2 participants