diff options
author | Richard van der Hoff <1389908+richvdh@users.noreply.github.com> | 2019-01-07 10:14:31 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-07 10:14:31 +0000 |
commit | b7c021881293c60ad0874f6d15375a9b7a40c22c (patch) | |
tree | 1ce62a02f81d408a2d49c8ba13a58f638905534b /synapse/app | |
parent | fix the check for whether `is_url` to match all the other ones in codebase (#... (diff) | |
download | synapse-b7c021881293c60ad0874f6d15375a9b7a40c22c.tar.xz |
Check jinja version for consent resource (#4327)
* Raise a ConfigError if an invalid resource is specified * Require Jinja 2.9 for the consent resource * changelog
Diffstat (limited to 'synapse/app')
-rw-r--r-- | synapse/app/__init__.py | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/synapse/app/__init__.py b/synapse/app/__init__.py index 233bf43fc8..b45adafdd3 100644 --- a/synapse/app/__init__.py +++ b/synapse/app/__init__.py @@ -19,15 +19,8 @@ from synapse import python_dependencies # noqa: E402 sys.dont_write_bytecode = True - try: python_dependencies.check_requirements() except python_dependencies.DependencyException as e: - message = "\n".join([ - "Missing Requirements: %s" % (", ".join(e.dependencies),), - "To install run:", - " pip install --upgrade --force %s" % (" ".join(e.dependencies),), - "", - ]) - sys.stderr.writelines(message) + sys.stderr.writelines(e.message) sys.exit(1) |