Sanitize base_url and directory parameters

this might be the cause of #25, at least from what it appears
This commit is contained in:
Felipe
2025-07-27 17:18:57 +00:00
committed by GitHub
parent 51becde916
commit 2bf04aff48
2 changed files with 4 additions and 4 deletions

View File

@@ -25,7 +25,7 @@ module ArchiveAPI
# Check if the response contains the header ["timestamp", "original"]
json.shift if json.first == ["timestamp", "original"]
json
rescue JSON::ParserError, StandardError => e
rescue JSON::ParserError => e
warn "Failed to fetch data from API: #{e.message}"
[]
end