[#7118] Added check for disabled tracker in GitHub import

Signed-off-by: Cory Johns <cjohns@slashdotmedia.com>
diff --git a/ForgeImporters/forgeimporters/github/__init__.py b/ForgeImporters/forgeimporters/github/__init__.py
index 0f17e0b..434e639 100644
--- a/ForgeImporters/forgeimporters/github/__init__.py
+++ b/ForgeImporters/forgeimporters/github/__init__.py
@@ -173,6 +173,9 @@
     def has_wiki(self):
         return self.get_page('project_info').get('has_wiki')
 
+    def has_tracker(self):
+        return self.get_page('project_info').get('has_issues')
+
 
 class GitHubOAuthMixin(object):
 
diff --git a/ForgeImporters/forgeimporters/github/tracker.py b/ForgeImporters/forgeimporters/github/tracker.py
index fff88f6..4295f2d 100644
--- a/ForgeImporters/forgeimporters/github/tracker.py
+++ b/ForgeImporters/forgeimporters/github/tracker.py
@@ -115,6 +115,9 @@
                     mount_label=None, **kw):
         import_id_converter = ImportIdConverter.get()
         project_name = '%s/%s' % (kw['user_name'], project_name)
+        extractor = GitHubProjectExtractor(project_name, user=user)
+        if not extractor.has_tracker():
+            return
         app = project.install_app('tickets', mount_point, mount_label,
                                   EnableVoting=False,
                                   open_status_names='open',
@@ -127,7 +130,6 @@
         self.github_markdown_converter = GitHubMarkdownConverter(
             kw['user_name'], project_name)
         ThreadLocalORMSession.flush_all()
-        extractor = GitHubProjectExtractor(project_name, user=user)
         try:
             M.session.artifact_orm_session._get().skip_mod_date = True
             with h.push_config(c, user=M.User.anonymous(), app=app):