Skip to content

Commit

Permalink
Attempt to clarify comment explaining fallback decorator behaviour an…
Browse files Browse the repository at this point in the history
…d usage
  • Loading branch information
jayaddison committed Oct 21, 2022
1 parent 10da8ad commit 3886a67
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion templates/scraper.py
Expand Up @@ -27,7 +27,8 @@ def ingredients(self):
def instructions(self):
return self.schema.instructions()

# Fallback decorators are called when the method fails to return a value
# Fallback decorators can be used to attempt other methods of extraction
# when the scraper's custom field implementation fails to return a value
@opengraph_fallback
def image(self):
pass

0 comments on commit 3886a67

Please sign in to comment.