Skip to content

Commit

Permalink
fix errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Panaetius committed Nov 8, 2023
1 parent 99c1895 commit e22bc6d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion renku/core/init.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@
from renku.core.githooks import install_githooks
from renku.core.image import ImageObjectRequest
from renku.core.interface.database_gateway import IDatabaseGateway
from renku.core.lfs import init_external_storage, storage_installed
from renku.core.migration.utils import OLD_METADATA_PATH
from renku.core.project import set_project_image
from renku.core.storage import init_external_storage, storage_installed
from renku.core.template.template import (
FileAction,
RenderedTemplate,
Expand Down
3 changes: 2 additions & 1 deletion renku/core/session/renkulab.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,8 +267,9 @@ def get_cloudstorage(self):
"""Get cloudstorage configured for the project."""
storage_service = cast(IStorageService, inject.instance(IStorageService))
project_id = storage_service.project_id
if not project_id:
if project_id is None:
communication.warn("Couldn't get project ID from Gitlab, skipping mounting cloudstorage")
return

storages = storage_service.list(project_id)

Expand Down

0 comments on commit e22bc6d

Please sign in to comment.