Skip to content

Commit

Permalink
lint: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
missytake committed Apr 11, 2024
1 parent d8c56a9 commit bd87524
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ To setup your development environment, you need to do something like this:
git clone https://github.com/deltachat/mailadm
python3 -m venv venv
. venv/bin/activate
pip install pytest tox pytest-xdist pytest-timeout pyzbar
pip install pytest tox pytest-xdist pytest-timeout pyzbar black ruff
sudo apt install -y libzbar0
pip install .
Expand Down
1 change: 1 addition & 0 deletions src/mailadm/app.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
help gunicorn and other WSGI servers to instantiate a web instance of mailadm
"""

import threading

from mailadm.bot import get_admbot_db_path
Expand Down
2 changes: 1 addition & 1 deletion src/mailadm/conn.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ def get_expired_users(self, sysdate):
expired_users.append(user)
continue
mc_user = self.get_mailcow_connection().get_user(user.addr)
if not mc_user:
if mc_user is None:
logging.warning("user %s doesn't exist in mailcow", user.addr)
continue
last_login = mc_user.last_login
Expand Down

0 comments on commit bd87524

Please sign in to comment.