mitsuhiko / flatex-pdf-download

some code to toy with that can download flatex.at pdfs
Apache License 2.0
43 stars 8 forks source link

TypeError: cli() got an unexpected keyword argument 'portal' #9

Closed sirexx81 closed 1 year ago

sirexx81 commented 1 year ago

Receive an error when trying to download my documents:

Traceback (most recent call last): File "C:\python\flatex-fetch.py", line 292, in cli() File "C:\python\Lib\site-packages\click\core.py", line 1137, in call return self.main(args, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\python\Lib\site-packages\click\core.py", line 1062, in main rv = self.invoke(ctx) ^^^^^^^^^^^^^^^^ File "C:\python\Lib\site-packages\click\core.py", line 1404, in invoke return ctx.invoke(self.callback, ctx.params) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\python\Lib\site-packages\click\core.py", line 763, in invoke return __callback(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: cli() got an unexpected keyword argument 'portal'

mitsuhiko commented 1 year ago

Sorry for that. Fixed in 09144a3f6e5af211566c8e7fd5ad0d3d97f3c63b

sirexx81 commented 1 year ago

Hey, thanks for the quick fix. However, I am still seeing an issue also with this version:

Traceback (most recent call last): File "C:\python\flatex-fetch.py", line 292, in cli() File "C:\python\Lib\site-packages\click\core.py", line 1137, in call return self.main(args, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\python\Lib\site-packages\click\core.py", line 1062, in main rv = self.invoke(ctx) ^^^^^^^^^^^^^^^^ File "C:\python\Lib\site-packages\click\core.py", line 1404, in invoke return ctx.invoke(self.callback, ctx.params) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\python\Lib\site-packages\click\core.py", line 763, in invoke return __callback(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\python\flatex-fetch.py", line 280, in cli fetcher.login(userid, password) File "C:\python\flatex-fetch.py", line 61, in login self.sso_url, ^^^^^^^^^^^^ File "C:\python\flatex-fetch.py", line 57, in sso_url return PORTALS[self.portal]["sso_url"] ^^^^^^^^^^^ AttributeError: 'Fetcher' object has no attribute 'portal'

mitsuhiko commented 1 year ago

Fixed and verified now :)