]> git.lizzy.rs Git - cheatdb.git/commitdiff
Fix unexpected crash on bad Github URL v1.16.2
authorrubenwardy <rw@rubenwardy.com>
Fri, 9 Aug 2019 10:17:39 +0000 (11:17 +0100)
committerrubenwardy <rw@rubenwardy.com>
Fri, 9 Aug 2019 10:17:39 +0000 (11:17 +0100)
app/tasks/importtasks.py

index a9277c5458dad2945e06ec7f5b511dc4075e1632..8c061d0d136d02fbbf58271986568ba0a70eaf80 100644 (file)
@@ -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)