From 04e8ae5bdd73f6a939c51ef7993935afd2e576f2 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Fri, 9 Aug 2019 11:17:39 +0100 Subject: [PATCH] Fix unexpected crash on bad Github URL --- app/tasks/importtasks.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/tasks/importtasks.py b/app/tasks/importtasks.py index a9277c54..8c061d0d 100644 --- a/app/tasks/importtasks.py +++ b/app/tasks/importtasks.py @@ -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)