mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Revert "Use logging module instead of err function"
This reverts commit 4acbbb8d0f.
I don't know how to use logging/logger
This throws:
No handlers could be found for logger "pelican.tools.pelican_themes"
This commit is contained in:
parent
4acbbb8d0f
commit
842817f110
1 changed files with 1 additions and 3 deletions
|
|
@ -192,9 +192,7 @@ def install(path, v=False, u=False):
|
|||
except shutil.Error, e:
|
||||
err("Cannot copy `{p}' to `{t}':\n{e}".format(p=path, t=theme_path, e=str(e)))
|
||||
except OSError, e:
|
||||
import logging
|
||||
logger = logging.getLogger(__name__)
|
||||
logger.warning("Cannot change permissions of files or directory in `{r}':\n{e}".format(r=theme_path, e=str(e)))
|
||||
err("Cannot change permissions of files or directory in `{r}':\n{e}".format(r=theme_path, e=str(e)), die=False)
|
||||
|
||||
|
||||
def symlink(path, v=False):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue