We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b836dcd commit b9acb29Copy full SHA for b9acb29
packet/__init__.py
@@ -24,8 +24,8 @@
24
app.config.from_pyfile(_pyfile_config)
25
26
# Fetch the version number from the npm package file
27
-_package_file = open(os.path.join(_root_dir, "package.json"))
28
-app.config["VERSION"] = json.load(_package_file)["version"]
+with open(os.path.join(_root_dir, "package.json")) as package_file:
+ app.config["VERSION"] = json.load(package_file)["version"]
29
30
# Logger configuration
31
logging.getLogger().setLevel(app.config["LOG_LEVEL"])
0 commit comments