mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-01-30 21:03:49 +02:00
Fix error when you have a directory in your symbols directory
Fix #1006
This commit is contained in:
parent
e870b0cfa0
commit
93fe66a253
@ -55,6 +55,8 @@ class Symbols:
|
|||||||
for file in os.listdir(directory):
|
for file in os.listdir(directory):
|
||||||
if file.startswith('.'):
|
if file.startswith('.'):
|
||||||
continue
|
continue
|
||||||
|
if not os.path.isfile(os.path.join(directory, file)):
|
||||||
|
continue
|
||||||
symbol_id = file
|
symbol_id = file
|
||||||
symbols.append({
|
symbols.append({
|
||||||
'symbol_id': symbol_id,
|
'symbol_id': symbol_id,
|
||||||
|
Loading…
Reference in New Issue
Block a user