aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--etc/default_settings.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/default_settings.py b/etc/default_settings.py
index 8636f4db..a0d01de0 100644
--- a/etc/default_settings.py
+++ b/etc/default_settings.py
@@ -24,7 +24,8 @@
import os
import sys
-GN_VERSION = open("../etc/VERSION", "r").read()
+with open("../etc/VERSION", "r") as version_file:
+ GN_VERSION = version_file.read()
# Redis
REDIS_URL = "redis://:@localhost:6379/0"