Commits

Jason R. Coombs committed 0ab1bbb

App conf keys really need to be 'native' to avoid errors

Comments (0)

Files changed (1)

pmxbot/web/viewer.py

 
 	# Cherrypy configuration here
 	app_conf = {
-		b'global': {
+		cherrypy._cpcompat.tonative('global', encoding='raw'): {
 			'server.socket_port': config.port,
 			'server.socket_host': config.host,
 			#'tools.encode.on': True,
 			'tools.encode.encoding': 'utf-8',
 		},
-		b'/pmxbot.png': {
+		cherrypy._cpcompat.tonative('/pmxbot.png', encoding='raw'): {
 			'tools.staticfile.on': True,
 			'tools.staticfile.filename': pkg_resources.resource_filename(
 				'pmxbot.web', 'templates/pmxbot.png'),