eric6/MicroPython/MicroPythonCommandsInterface.py

changeset 8058
9769eb548f0d
parent 7923
91e843545d9a
child 8061
979562f350bf
--- a/eric6/MicroPython/MicroPythonCommandsInterface.py	Tue Feb 02 16:39:47 2021 +0100
+++ b/eric6/MicroPython/MicroPythonCommandsInterface.py	Tue Feb 02 19:41:04 2021 +0100
@@ -371,7 +371,7 @@
                     "    try:",
                     "        files = __os_.listdir(dirname)",
                     "    except OSError:",
-                    "        return None",
+                    "        return []",
                     "    if dirname in ('', '/'):",
                     "        return list((f, stat(f)) for f in files if"
                     " is_visible(f, showHidden))",

eric ide

mercurial