From 93fe66a253c7a50932632fa4e37177f095500673 Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Wed, 10 May 2017 13:40:49 +0200 Subject: [PATCH] Fix error when you have a directory in your symbols directory Fix #1006 --- gns3server/controller/symbols.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gns3server/controller/symbols.py b/gns3server/controller/symbols.py index 5c473d8b..63da9225 100644 --- a/gns3server/controller/symbols.py +++ b/gns3server/controller/symbols.py @@ -55,6 +55,8 @@ class Symbols: for file in os.listdir(directory): if file.startswith('.'): continue + if not os.path.isfile(os.path.join(directory, file)): + continue symbol_id = file symbols.append({ 'symbol_id': symbol_id,