aboutsummaryrefslogtreecommitdiff
path: root/app/tasks/importtasks.py
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2019-08-09 11:17:39 +0100
committerrubenwardy <rw@rubenwardy.com>2019-08-09 11:17:39 +0100
commit04e8ae5bdd73f6a939c51ef7993935afd2e576f2 (patch)
tree2e8243b3de0cea74c3e2abe24d32fc3f5cfc8e17 /app/tasks/importtasks.py
parent18b9fb38766260aabeab5ce1cd98c7f49d57c91d (diff)
downloadcheatdb-04e8ae5bdd73f6a939c51ef7993935afd2e576f2.tar.xz
Fix unexpected crash on bad Github URLv1.16.2
Diffstat (limited to 'app/tasks/importtasks.py')
-rw-r--r--app/tasks/importtasks.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/tasks/importtasks.py b/app/tasks/importtasks.py
index a9277c5..8c061d0 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)