Update web.py
authormarcelveldt <marcelvanderveldt@MacBook-Silvia.local>
Wed, 16 Oct 2019 07:35:30 +0000 (09:35 +0200)
committermarcelveldt <marcelvanderveldt@MacBook-Silvia.local>
Wed, 16 Oct 2019 07:35:30 +0000 (09:35 +0200)
music_assistant/web.py

index 7fef9991556b59a2b862fb22e472c7b44f8c6b4a..f4fff6bb29b8b1722f05e132a1e4f7324d0556dc 100755 (executable)
@@ -30,7 +30,7 @@ class Web():
         # load/create/update config
         config = self.mass.config.create_module_config(CONF_KEY, CONFIG_ENTRIES)
         if config['ssl_certificate'] and not os.path.isfile(
-                self.mass.config['ssl_certificate']):
+                config['ssl_certificate']):
             raise FileNotFoundError(
                 "SSL certificate file not found: %s" % config['ssl_certificate'])
         if config['ssl_key'] and not os.path.isfile(config['ssl_key']):