mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Use logging module instead of err function
This commit is contained in:
parent
10e668a87c
commit
4acbbb8d0f
1 changed files with 3 additions and 1 deletions
|
|
@ -192,7 +192,9 @@ 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:
|
||||
err("Cannot change permissions of files or directory in `{r}':\n{e}".format(r=theme_path, e=str(e)), die=False)
|
||||
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)))
|
||||
|
||||
|
||||
def symlink(path, v=False):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue