use RawConfigParser to avoid interpolation bollocks

This commit is contained in:
Marks Polakovs 2020-04-13 19:04:55 +02:00
parent f905a93dfb
commit 093480c953
2 changed files with 2 additions and 2 deletions

View file

@ -17,7 +17,7 @@ from aiortc import MediaStreamTrack, RTCPeerConnection, RTCSessionDescription #
from aiortc.mediastreams import MediaStreamError # type: ignore from aiortc.mediastreams import MediaStreamError # type: ignore
from raygun4py import raygunprovider # type: ignore from raygun4py import raygunprovider # type: ignore
config = configparser.ConfigParser() config = configparser.RawConfigParser()
config.read("serverconfig.ini") config.read("serverconfig.ini")
ENABLE_EXCEPTION_LOGGING = False ENABLE_EXCEPTION_LOGGING = False

View file

@ -13,7 +13,7 @@ import random
from telnetlib import Telnet from telnetlib import Telnet
import configparser import configparser
config = configparser.ConfigParser() config = configparser.RawConfigParser()
config.read("serverconfig.ini") config.read("serverconfig.ini")
api_key = config.get("stateserver", "myradio_key") api_key = config.get("stateserver", "myradio_key")