f
This commit is contained in:
@@ -90,6 +90,7 @@ class Folder(Store):
|
||||
NAME: Optional[str] = None,
|
||||
PATH: Optional[str] = None,
|
||||
) -> None:
|
||||
log("WARNING: Folder store is DEPRECATED and will be removed in a future version. Please migrate to HydrusNetwork.")
|
||||
if name is None and NAME is not None:
|
||||
name = str(NAME)
|
||||
if location is None and PATH is not None:
|
||||
|
||||
@@ -66,6 +66,8 @@ def _discover_store_classes() -> Dict[str, Type[BaseStore]]:
|
||||
module_name = module_info.name
|
||||
if module_name in {"__init__", "_base", "registry"}:
|
||||
continue
|
||||
if module_name.lower() == "folder":
|
||||
continue
|
||||
|
||||
try:
|
||||
module = importlib.import_module(f"Store.{module_name}")
|
||||
@@ -215,6 +217,8 @@ class Store:
|
||||
continue
|
||||
|
||||
store_type = _normalize_store_type(str(raw_store_type))
|
||||
if store_type == "folder":
|
||||
continue
|
||||
store_cls = classes_by_type.get(store_type)
|
||||
if store_cls is None:
|
||||
if not self._suppress_debug:
|
||||
|
||||
Reference in New Issue
Block a user