diff --git a/services/datalad/datalad_service/common/github.py b/services/datalad/datalad_service/common/github.py index f90fc54d6..18425eb9e 100644 --- a/services/datalad/datalad_service/common/github.py +++ b/services/datalad/datalad_service/common/github.py @@ -12,14 +12,8 @@ def create_github_repo(dataset_path, dataset_id): """Setup a github sibling / remote.""" try: - # raise exception if github exports are not enabled if not DATALAD_GITHUB_EXPORTS_ENABLED: - raise Exception( - 'DATALAD_GITHUB_EXPORTS_ENABLED must be defined to create remote repos' - ) - - # this adds github remote to config and also creates repo - return create_sibling_github(dataset_path, dataset_id) + return create_sibling_github(dataset_path, dataset_id) except KeyError: raise Exception( 'DATALAD_GITHUB_TOKEN and DATALAD_GITHUB_ORG must be defined to create remote repos'