Private
Public Access
1
0

Merge branch 'develop' into feature/integrations

This commit is contained in:
Sander Roosendaal
2023-02-11 13:50:00 +01:00
2 changed files with 10 additions and 3 deletions

View File

@@ -692,7 +692,12 @@ def workout_nkimport_view(request, userid=0, after=0, before=0):
parkedids = []
try:
with open('nkblocked.json', 'r') as nkblocked:
jsondata = json.load(nkblocked)
try:
jsondata = json.load(nkblocked)
except:
jsondata = {
'ids':[]
}
parkedids = jsondata['ids']
except FileNotFoundError: # pragma: no cover
pass