This commit is contained in:
Darren Burns
2022-09-01 16:00:24 +01:00
parent a51c7e839e
commit 99ffcf5040

View File

@@ -226,9 +226,7 @@ class App(Generic[ReturnType], DOMNode):
# We want the CSS path to be resolved from the location of the App subclass # We want the CSS path to be resolved from the location of the App subclass
css_path = css_path or self.CSS_PATH css_path = css_path or self.CSS_PATH
if css_path is None: if css_path is not None:
css_path = None
else:
if isinstance(css_path, str): if isinstance(css_path, str):
css_path = Path(css_path) css_path = Path(css_path)
css_path = _make_path_object_relative(css_path, self) if css_path else None css_path = _make_path_object_relative(css_path, self) if css_path else None