Fix lkrz trying to load if file does not exist

master
Lertsenem 2020-08-21 11:39:13 +02:00
parent d6f792c01d
commit 4b2e5489e5
1 changed files with 1 additions and 1 deletions

View File

@ -201,7 +201,7 @@ def main():
tournament = None tournament = None
top_players = {} top_players = {}
if args.lkrz_file is not None: if args.lkrz_file is not None and args.lkrz_file.exists():
lkrz = configparser.ConfigParser() lkrz = configparser.ConfigParser()
lkrz.read(str(args.lkrz_file)) lkrz.read(str(args.lkrz_file))