X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=helpers%2Fmapping.py;h=9420acff8b4f07ab69023cab62af0965eb2f30d8;hb=aee1334ca47ff55c815eee204fe03683a572be0f;hp=19fc3c5f2140ec9ba64feac2984b97d720e9f05b;hpb=6c44b2313c8c115ee05ffe9106ccd8517ec5c66b;p=perso%2FImmae%2FProjets%2FPython%2FMusicSampler.git diff --git a/helpers/mapping.py b/helpers/mapping.py index 19fc3c5..9420acf 100644 --- a/helpers/mapping.py +++ b/helpers/mapping.py @@ -91,7 +91,7 @@ class Mapping(RelativeLayout): stream = open(Config.yml_file, "r") try: config = yaml.load(stream) - except yaml.scanner.ScannerError as e: + except Exception as e: error_print("Error while loading config file: {}".format(e)) sys.exit() stream.close()