Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions services/datalad/datalad_service/common/github.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@

def create_github_repo(dataset_path, dataset_id):
"""Setup a github sibling / remote."""
if not DATALAD_GITHUB_EXPORTS_ENABLED:
return
try:
if not DATALAD_GITHUB_EXPORTS_ENABLED:
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'
Expand Down