opsdisk / metagoofil

Search Google and download specific file types
Other
405 stars 85 forks source link

Fix for one output error #11

Closed ZEROF closed 5 years ago

ZEROF commented 5 years ago

Hi,

Was getting this error:

Traceback (most recent call last): File "./metagoofil.py", line 226, in mg.go() File "./metagoofil.py", line 146, in go self.html_links.close() AttributeError: Metagoofil instance has no attribute 'html_links'

Fix

From:

            if self.save_links:
                for f in self.files:
                    self.html_links.write(f + "\n")

        self.html_links.close()

To:


            if self.save_links:
                for f in self.files:
                    self.html_links.write(f + "\n")
        if self.save_links:
            self.html_links.close()
opsdisk commented 5 years ago

Thanks for taking the time to submit an issue @ZEROF . Do you want to submit a pull request to get contributor credit? If not, I can just add it.

ZEROF commented 5 years ago

U welcome. Sure, I will send pull request ;)

Le mar. 30 oct. 2018 à 22:12, opsdisk notifications@github.com a écrit :

Thanks for taking the time to submit an issue @ZEROF https://github.com/ZEROF . Do you want to submit a pull request to get contributor credit? If not, I can just add it.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/opsdisk/metagoofil/issues/11#issuecomment-434470755, or mute the thread https://github.com/notifications/unsubscribe-auth/ACkDof_f6cOutF0fsMaXH-W9K7aI9wHpks5uqMCggaJpZM4YCR9k .

opsdisk commented 5 years ago

See https://github.com/opsdisk/metagoofil/pull/12