Replace deprecated .warn() with .warning()
This commit is contained in:
parent
3522c3c86e
commit
0a9b0223a6
|
@ -87,13 +87,13 @@ class CuePointAnalyzer(Analyzer):
|
|||
metadata["cueout"] = silan_cueout
|
||||
|
||||
except OSError as e: # silan was not found
|
||||
logging.warn(
|
||||
logging.warning(
|
||||
"Failed to run: %s - %s. %s"
|
||||
% (command[0], e.strerror, "Do you have silan installed?")
|
||||
)
|
||||
except subprocess.CalledProcessError as e: # silan returned an error code
|
||||
logging.warn("%s %s %s", e.cmd, e.output, e.returncode)
|
||||
logging.warning("%s %s %s", e.cmd, e.output, e.returncode)
|
||||
except Exception as e:
|
||||
logging.warn(e)
|
||||
logging.warning(e)
|
||||
|
||||
return metadata
|
||||
|
|
|
@ -34,7 +34,7 @@ class PlayabilityAnalyzer(Analyzer):
|
|||
subprocess.check_output(command, stderr=subprocess.STDOUT, close_fds=True)
|
||||
|
||||
except OSError as e: # liquidsoap was not found
|
||||
logging.warn(
|
||||
logging.warning(
|
||||
"Failed to run: %s - %s. %s"
|
||||
% (command[0], e.strerror, "Do you have liquidsoap installed?")
|
||||
)
|
||||
|
@ -42,7 +42,7 @@ class PlayabilityAnalyzer(Analyzer):
|
|||
subprocess.CalledProcessError,
|
||||
Exception,
|
||||
) as e: # liquidsoap returned an error code
|
||||
logging.warn(e)
|
||||
logging.warning(e)
|
||||
raise UnplayableFileError()
|
||||
|
||||
return metadata
|
||||
|
|
|
@ -34,13 +34,13 @@ class ReplayGainAnalyzer(Analyzer):
|
|||
metadata["replay_gain"] = float(replaygain)
|
||||
|
||||
except OSError as e: # replaygain was not found
|
||||
logging.warn(
|
||||
logging.warning(
|
||||
"Failed to run: %s - %s. %s"
|
||||
% (command[0], e.strerror, "Do you have python-rgain installed?")
|
||||
)
|
||||
except subprocess.CalledProcessError as e: # replaygain returned an error code
|
||||
logging.warn("%s %s %s", e.cmd, e.output, e.returncode)
|
||||
logging.warning("%s %s %s", e.cmd, e.output, e.returncode)
|
||||
except Exception as e:
|
||||
logging.warn(e)
|
||||
logging.warning(e)
|
||||
|
||||
return metadata
|
||||
|
|
Loading…
Reference in New Issue