Private
Public Access
1
0
This commit is contained in:
Sander Roosendaal
2023-02-11 13:49:39 +01:00
parent d661f861c4
commit 27941d608c
2 changed files with 10 additions and 3 deletions

View File

@@ -711,7 +711,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