Skip to content

Commit

Permalink
[BUG] Fix bad invocation of CondaStoreError (#1080)
Browse files Browse the repository at this point in the history
  • Loading branch information
peytondmurray authored Feb 4, 2025
1 parent a6ce878 commit 8b81c45
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions conda-store-server/conda_store_server/conda_store_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
)
from traitlets.config import LoggingConfigurable

from conda_store_server import CONDA_STORE_DIR, BuildKey, api, storage
from conda_store_server._internal import conda_utils, environment, schema, utils
from conda_store_server import CONDA_STORE_DIR, BuildKey, api, exception, storage
from conda_store_server._internal import conda_utils, environment, schema
from conda_store_server.server import schema as auth_schema


Expand Down Expand Up @@ -59,7 +59,7 @@ def conda_store_validate_action(
auth_schema.Permissions.ENVIRONMENT_CREATE,
auth_schema.Permissions.ENVIRONMENT_UPDATE,
) and (storage_threshold > system_metrics.disk_free):
raise utils.CondaStoreError(
raise exception.CondaStoreError(
f"`CondaStore.storage_threshold` reached. Action {action.value} prevented due to insufficient storage space"
)

Expand Down

0 comments on commit 8b81c45

Please sign in to comment.