from .music_file import *
from .mixer import Mixer
-from . import Config, gain
+from . import Config, gain, error_print
class Mapping(RelativeLayout):
expected_keys = NumericProperty(0)
def parse_config(self):
stream = open(Config.yml_file, "r")
- config = yaml.load(stream)
+ try:
+ config = yaml.load(stream)
+ except yaml.scanner.ScannerError as e:
+ error_print("Error while loading config file: {}".format(e))
+ sys.exit()
stream.close()
aliases = config['aliases']