Merge pull request #1 from babolivier/patch-1

This commit is contained in:
Andrew Morgan 2019-11-07 14:40:34 +00:00 committed by GitHub
commit 9dc5f8f8a9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -60,7 +60,12 @@ class Config(object):
if not self.access_token:
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")
if not self.homeserver_url: