Skip to content

Commit 358a42c

Browse files
committed
Fix logic error if there is a problem with shed_create.
xref #423 - it won't fix it but it will give a better error I guess.
1 parent a58a3b8 commit 358a42c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

planemo/shed/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ def upload_repository(ctx, realized_repository, **kwds):
240240
_update_commit_message(ctx, realized_repository, update_kwds, **kwds)
241241

242242
repo_id = realized_repository.find_repository_id(ctx, shed_context)
243-
if repo_id is None and kwds["force_repository_creation"]:
243+
if repo_id is None and kwds.get("force_repository_creation", None):
244244
repo_id = realized_repository.create(ctx, shed_context)
245245
# failing to create the repo, give up
246246
if repo_id is None:

0 commit comments

Comments
 (0)