diff --git a/lib/matplotlib/backends/backend_wx.py b/lib/matplotlib/backends/backend_wx.py index 514038633637..6f836db94a1f 100644 --- a/lib/matplotlib/backends/backend_wx.py +++ b/lib/matplotlib/backends/backend_wx.py @@ -121,7 +121,7 @@ class TimerWx(TimerBase): ''' def __init__(self, *args, **kwargs): - if isinstance(args[0], wx.EvtHandler): + if args and isinstance(args[0], wx.EvtHandler): cbook.warn_deprecated( "3.0", "Passing a wx.EvtHandler as first argument to the " "TimerWx constructor is deprecated since %(version)s.")
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: