From 5cf3b834070319f775cee2e5f5576ebbde8fbc8f Mon Sep 17 00:00:00 2001 From: Lammert Westerhoff Date: Fri, 26 May 2017 15:53:39 +0200 Subject: [PATCH] Deprecation: update to warning The 'warn' method is deprecated, use 'warning' instead --- silk/profiling/profiler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/silk/profiling/profiler.py b/silk/profiling/profiler.py index ad59ac51..1a8ef39c 100644 --- a/silk/profiling/profiler.py +++ b/silk/profiling/profiler.py @@ -170,7 +170,7 @@ def wrapped_target(*args, **kwargs): return wrapped_target else: - Logger.warn('Cannot execute silk_profile as silk is not installed correctly.') + Logger.warning('Cannot execute silk_profile as silk is not installed correctly.') return target def distinct_queries(self):