DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead

DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
This commit is contained in:
MirceaDan committed 2018-12-01 15:07:04 -08:00
1 parent f72f948744
commit f5c8b04958
26 files changed
+109 -106

No files matched your search

+1 -1
View File
@@ -88,7 +88,7 @@ class OctoPrintPluginCommands(click.MultiCommand):
commands = hook(self, pass_octoprint_ctx)
for command in commands:
if not isinstance(command, click.Command):
self._logger.warn("Plugin {} provided invalid CLI command, ignoring it: {!r}".format(name, command))
self._logger.warning("Plugin {} provided invalid CLI command, ignoring it: {!r}".format(name, command))
continue
result[name + self.sep + command.name] = command
except: