Skip to content

Commit d5cf0ab

Browse files
committed
fix: empty config error
1 parent ffcfe97 commit d5cf0ab

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# Changelog
22

33
This file documents any relevant changes.
4+
## [0.6.7] - 2022-02-25
5+
- fix: cant use viur with missing project.json
6+
47
## [0.6.6] - 2022-02-23
58
- [BREAKING]: `viur release` requires pyenv to enforce python 3.9.5
69

src/viur_cli/conf.py

+3
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,9 @@ def fetch_core_version():
179179
write_config(projectConfig)
180180

181181
def update_config():
182+
if not projectConfig:
183+
return 0
184+
182185
if "format" not in projectConfig["default"]:
183186
projectConfig["default"]["format"] = "1.0.0"
184187

src/viur_cli/version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.6.6"
1+
__version__ = "0.6.7"

0 commit comments

Comments
 (0)