Fix unexpected crash on bad Github URL

This commit is contained in:
rubenwardy 2019-08-09 11:17:39 +01:00
parent 18b9fb3876
commit 04e8ae5bdd

@ -29,6 +29,10 @@ from app.utils import randomString
class GithubURLMaker:
def __init__(self, url):
self.baseUrl = None
self.user = None
self.repo = None
# Rewrite path
import re
m = re.search("^\/([^\/]+)\/([^\/]+)\/?$", url.path)