Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ fixes:
- chore: bump jinja2 to 3.1.6 (#1723)
- chore: update errbot-backend-slackv3 version to 0.3.1 (#1725)
- fix: Close and join thread pools between tests (#1724)
- fix: type hints (#1698)


v6.2.0 (2024-01-01)
Expand Down
7 changes: 3 additions & 4 deletions errbot/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import logging
import os
import sys
from collections.abc import Mapping
from os import W_OK, access, getcwd, path, sep
from pathlib import Path
from platform import system
Expand Down Expand Up @@ -64,7 +65,7 @@ def get_config(config_path: str):
log.error(f"I cannot find the config file {config_path}.")
log.error("You can change this path with the -c parameter see --help")
log.info(
f'You can use the template {os.path.realpath(os.path.join(__file__, os.pardir, "config-template.py"))}'
f"You can use the template {os.path.realpath(os.path.join(__file__, os.pardir, 'config-template.py'))}"
f" as a base and copy it to {config_path}."
)
log.info("You can then customize it.")
Expand All @@ -81,9 +82,7 @@ def get_config(config_path: str):
exit(-1)


def _read_dict() -> dict:
from collections.abc import Mapping

def _read_dict() -> Mapping:
new_dict = ast.literal_eval(sys.stdin.read())
if not isinstance(new_dict, Mapping):
raise ValueError(
Expand Down