Skip to content

Commit

Permalink
fix #385
Browse files Browse the repository at this point in the history
  • Loading branch information
hpk42 committed Jul 30, 2024
1 parent e3f0bb1 commit 3ee0b7e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Changelog for chatmail deployment

## untagged

## 1.4.0 2024-07-28

- Add `disable_ipv6` config option to chatmail.ini.
Expand Down
4 changes: 2 additions & 2 deletions chatmaild/src/chatmaild/tests/test_user.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ def test_get_user_dict_not_set(testaddr, example_config, caplog):
user = example_config.get_user(testaddr)
assert not caplog.records
assert user.get_userdb_dict() == {}
assert len(caplog.records) == 1
assert len(caplog.records) == 0

user.set_password("")
assert user.get_userdb_dict() == {}
assert len(caplog.records) == 2
assert len(caplog.records) == 1


def test_get_user_dict(make_config, tmp_path):
Expand Down
1 change: 0 additions & 1 deletion chatmaild/src/chatmaild/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ def get_userdb_dict(self):
try:
pw = self.password_path.read_text()
except FileNotFoundError:
logging.error(f"password not set for: {self.addr}")
return {}

if not pw:
Expand Down
3 changes: 1 addition & 2 deletions cmdeploy/src/cmdeploy/cmdeploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,10 @@
import subprocess
import sys
from pathlib import Path
from packaging import version

import pyinfra

from chatmaild.config import read_config, write_initial_config
from packaging import version
from termcolor import colored

from . import dns, remote_funcs
Expand Down

0 comments on commit 3ee0b7e

Please sign in to comment.