Commits

Jason R. Coombs  committed 6415472

Fix issue in logo path resolution when no web base is supplied.

  • Participants
  • Parent commits d9fee1e

Comments (0)

Files changed (1)

File pmxbot/web/viewer.py

 	if config.web_base.endswith('/'):
 		config['web_base'] = config.web_base.rstrip('/')
 	if 'logo' not in config:
-		config['logo'] = urlparse.urljoin(config.web_base, 'pmxbot.png')
+		web_base = config.web_base or '/'
+		config['logo'] = urlparse.urljoin(web_base, 'pmxbot.png')
 
 def startup(config):
 	patch_compat(config)