correction bug si fichier jsin n'existe pas
This commit is contained in:
parent
bd9a8b36bb
commit
32e7c44115
@ -67,8 +67,13 @@ class Interface:
|
|||||||
|
|
||||||
|
|
||||||
def load_jsonfile(file):
|
def load_jsonfile(file):
|
||||||
with open(file, 'r', encoding='utf-8') as f:
|
try:
|
||||||
return json.load(f)
|
with open(file, 'r', encoding='utf-8') as f:
|
||||||
|
return json.load(f)
|
||||||
|
except FileNotFoundError:
|
||||||
|
parsechaine(file)
|
||||||
|
with open(file, 'r', encoding='utf-8') as f:
|
||||||
|
return json.load(f)
|
||||||
|
|
||||||
def RepresentsInt(s):
|
def RepresentsInt(s):
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user