mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-24 12:05:22 +08:00
distutils.log has no warning
overzealous find/replace for deprecated `logging.warn`. `distutils.log.warn` is not deprecated and their is no `distutils.log.warning`.
This commit is contained in:
parent
ab4a740509
commit
204d907df7
@ -536,11 +536,11 @@ def css_js_prerelease(command, strict=False):
|
||||
# die if strict or any targets didn't build
|
||||
prefix = os.path.commonprefix([repo_root + os.sep] + missing)
|
||||
missing = [ m[len(prefix):] for m in missing ]
|
||||
log.warning("rebuilding js and css failed. The following required files are missing: %s" % missing)
|
||||
log.warn("rebuilding js and css failed. The following required files are missing: %s" % missing)
|
||||
raise e
|
||||
else:
|
||||
log.warning("rebuilding js and css failed (not a problem)")
|
||||
log.warning(str(e))
|
||||
log.warn("rebuilding js and css failed (not a problem)")
|
||||
log.warn(str(e))
|
||||
|
||||
# check again for missing targets, just in case:
|
||||
missing = [ t for t in targets if not os.path.exists(t) ]
|
||||
|
Loading…
Reference in New Issue
Block a user