Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
kegsay committed Aug 30, 2016
1 parent 572acde commit c882783
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions synapse/config/appservice.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ def _load_appservice(hostname, as_info, config_filename):

# 'url' must either be a string or explicitly null, not missing
# to avoid accidentally turning off push for ASes.
if not isinstance(as_info.get("url"), basestring) and as_info.get("url", "") is not None:
if (not isinstance(as_info.get("url"), basestring) and
as_info.get("url", "") is not None):
raise KeyError(
"Required string field or explicit null: 'url' (%s)" % (config_filename,)
)
Expand Down Expand Up @@ -140,7 +141,7 @@ def _load_appservice(hostname, as_info, config_filename):
if not isinstance(p, str):
raise KeyError("Bad value for 'protocols' item")

if as_info["url"] == None:
if as_info["url"] is None:
logger.info(
"(%s) Explicitly empty 'url' provided. This application service"
" will not receive events or queries.",
Expand Down

0 comments on commit c882783

Please sign in to comment.