Snawoot / postfix-mta-sts-resolver

Daemon which provides TLS client policy for Postfix via socketmap, according to domain MTA-STS policy
MIT License
117 stars 23 forks source link

TypeError #81

Closed mzch closed 2 years ago

mzch commented 2 years ago

Describe the bug In 1.1.0 TypeError occurred.

To Reproduce Steps to reproduce the behavior:

  1. pip install postfix-mta-sts-resolver[redis,sqlite]
  2. mta-sts-daemon --config $HOME/daemon.yml --logfile $HOME/logs/daemon.log

Expected behavior Run successfully.

Output listings

Traceback (most recent call last):
  File "/srv/mta-sts/.pyenv/versions/3.9.9/bin/mta-sts-daemon", line 8, in <module>
    sys.exit(main())
  File "/srv/mta-sts/.pyenv/versions/3.9.9/lib/python3.9/site-packages/postfix_mta_sts_resolver/daemon.py", line 123, in main
    evloop.run_until_complete(amain(cfg, evloop))
  File "uvloop/loop.pyx", line 1501, in uvloop.loop.Loop.run_until_complete
  File "/srv/mta-sts/.pyenv/versions/3.9.9/lib/python3.9/site-packages/postfix_mta_sts_resolver/daemon.py", line 65, in amain
    await cache.setup()
import json
import uuid
  File "/srv/mta-sts/.pyenv/versions/3.9.9/lib/python3.9/site-packages/postfix_mta_sts_resolver/redis_cache.py", line 39, in setup
    self._pool = await aioredis.from_url(**self._opts)
TypeError: from_url() missing 1 required positional argument: 'url'

Environment (please complete the following information):

Additional context

Snawoot commented 2 years ago

Hello!

Seems good to me, especially if it worked for you.

Don't you mind submit pull request with that fix, do you?

mzch commented 2 years ago

Just created. Please see #82 . :)

Snawoot commented 2 years ago

Thank you! Merged #82. Going to make a new release soon.