Merge pull request #1 from babolivier/patch-1
This commit is contained in:
commit
9dc5f8f8a9
1 changed files with 6 additions and 1 deletions
|
@ -60,7 +60,12 @@ class Config(object):
|
||||||
if not self.access_token:
|
if not self.access_token:
|
||||||
raise ConfigError("matrix.access_token is a required field")
|
raise ConfigError("matrix.access_token is a required field")
|
||||||
|
|
||||||
self.device_id = matrix.get("device_id", "cribbage bot")
|
self.device_id = matrix.get("device_id")
|
||||||
|
if not self.device_id:
|
||||||
|
logger.warning(
|
||||||
|
"Config option matrix.device_id is not provided, which means "
|
||||||
|
"that end-to-end encryption won't work correctly"
|
||||||
|
)
|
||||||
|
|
||||||
self.homeserver_url = matrix.get("homeserver_url")
|
self.homeserver_url = matrix.get("homeserver_url")
|
||||||
if not self.homeserver_url:
|
if not self.homeserver_url:
|
||||||
|
|
Loading…
Reference in a new issue