summary refs log tree commit diff
path: root/synapse/app
diff options
context:
space:
mode:
authorErik Johnston <erikj@matrix.org>2016-05-16 17:21:30 +0100
committerMatrix <matrix@matrix.org>2016-05-16 17:21:30 +0100
commitc39f305067bf2d4527322922014ff682547de103 (patch)
tree28f8505f1738048f2f74c883c2a5bb35ece9b53e /synapse/app
parentMerge pull request #785 from matrix-org/erikj/cache_factor_synctly (diff)
downloadsynapse-c39f305067bf2d4527322922014ff682547de103.tar.xz
os.environ requires a string
Diffstat (limited to '')
-rwxr-xr-xsynapse/app/synctl.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/app/synctl.py b/synapse/app/synctl.py
index 669a3ae92a..39f4bf6e53 100755
--- a/synapse/app/synctl.py
+++ b/synapse/app/synctl.py
@@ -69,7 +69,7 @@ def main():
     cache_factor = config.get("synctl_cache_factor", None)
 
     if cache_factor:
-        os.environ["SYNAPSE_CACHE_FACTOR"] = cache_factor
+        os.environ["SYNAPSE_CACHE_FACTOR"] = str(cache_factor)
 
     action = sys.argv[1] if sys.argv[1:] else "usage"
     if action == "start":