Skip to content

Commit

Permalink
Print -> self.log
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewZMSU committed Jun 28, 2024
1 parent d4bdfa7 commit e7d4544
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions examples/spiders/auto_recaptcha.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,5 @@ def make_screenshot(self, response: PuppeteerScreenshotResponse, **kwargs):
with open("imageToSave.png", "wb") as fh:
fh.write(base64.b64decode(data))

@staticmethod
def error(failure: Failure):
print("We are in error function!")
def error(self, failure: Failure):
self.log("We are in error function!")
5 changes: 2 additions & 3 deletions examples/spiders/manual_recaptcha.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,5 @@ def make_screenshot(self, response: PuppeteerScreenshotResponse, **kwargs):
with open("imageToSave.png", "wb") as fh:
fh.write(base64.b64decode(data))

@staticmethod
def error(failure: Failure):
print("We are in error function!")
def error(self, failure: Failure):
self.log("We are in error function!")

0 comments on commit e7d4544

Please sign in to comment.