eric6/Debugger/VariablesViewer.py

changeset 6953
b06cb5bbc880
parent 6942
2602857055c5
child 6969
fd7af2312383
--- a/eric6/Debugger/VariablesViewer.py	Fri Apr 19 11:02:49 2019 +0200
+++ b/eric6/Debugger/VariablesViewer.py	Fri Apr 19 11:03:34 2019 +0200
@@ -733,7 +733,7 @@
                 if par.text(2) == "django.MultiValueDict":
                     nlist[0] = 'getlist({0})'.format(nlist[0])
                 elif par.text(2) == "numpy.ndarray":
-                    if nlist[0][0].isalpha():
+                    if nlist and nlist[0][0].isalpha():
                         if nlist[0] in ["min", "max", "mean"]:
                             nlist[0] = ".{0}()".format(nlist[0])
                         else:

eric ide

mercurial