Fixed incompatibility with Python 3.6 (used in Blender 2.79b)

This commit is contained in:
2018-11-01 18:30:10 +01:00
parent 6fefe4ffd8
commit 3f2479067c
2 changed files with 3 additions and 3 deletions

View File

@@ -934,7 +934,7 @@ class ATTRACT_OT_project_open_in_browser(Operator):
import pprint
log.debug('found project: %s', pprint.pformat(project.to_dict()))
url = urllib.parse.urljoin(PILLAR_WEB_SERVER_URL, f'attract/{project.url}')
url = urllib.parse.urljoin(PILLAR_WEB_SERVER_URL, 'attract/' + project.url)
webbrowser.open_new_tab(url)
self.report({'INFO'}, 'Opened a browser at %s' % url)