1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-12 19:38:57 +00:00

Fix error when you have a directory in your symbols directory

Fix #1006
This commit is contained in:
Julien Duponchelle 2017-05-10 13:40:49 +02:00
parent e870b0cfa0
commit 93fe66a253
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

View File

@ -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,