Skip to content

Commit

Permalink
improve locale retrieval
Browse files Browse the repository at this point in the history
Co-authored-by: James Addison <55152140+jayaddison@users.noreply.github.com>
  • Loading branch information
tomtjes and jayaddison authored Sep 2, 2024
1 parent be63100 commit 3ccddc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion recipe_scrapers/marleyspoon.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def _specs(self):
},
}

self.locale = self.language()[:2]
self.locale = self.language()[:2].lower()
if self.locale not in vocab.keys():
raise UnsupportedLocale(self.locale)

Check failure on line 55 in recipe_scrapers/marleyspoon.py

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

recipe_scrapers/marleyspoon.py#L55

No value for argument 'url' in constructor call

Expand Down

0 comments on commit 3ccddc9

Please sign in to comment.