Открыть боковую панель
nikitronn
sverchok
Коммиты
a387a06e
Не подтверждена
Коммит
a387a06e
создал
Май 25, 2022
по автору
Dealga McArdle
Зафиксировано автором
GitHub
Май 25, 2022
Просмотр файлов
Snlite directive malformed error (#4494)
* mroe useful error * this will do
владелец
ff53b66c
Изменения
1
Скрыть пробелы
Построчно
Рядом
utils/snlite_importhelper.py
Просмотр файла @
a387a06e
...
@@ -52,7 +52,11 @@ def processed(str_in):
...
@@ -52,7 +52,11 @@ def processed(str_in):
def
parse_socket_line
(
node
,
line
):
def
parse_socket_line
(
node
,
line
):
lsp
=
line
.
strip
().
split
()
lsp
=
line
.
strip
().
split
()
if
not
len
(
lsp
)
in
{
3
,
5
}:
if
not
len
(
lsp
)
in
{
3
,
5
}:
self
.
info
(
f
"
{
line
}
-> is malformed"
)
node
.
error
(
f
'directive: (socket line) "
{
line
}
" -> is malformed '
f
'(too little information, probably forgot to specify the socket-kind'
f
':
{
sock_dict
.
keys
()
}
'
)
return
UNPARSABLE
return
UNPARSABLE
else
:
else
:
socket_type
=
sock_dict
.
get
(
lsp
[
2
])
socket_type
=
sock_dict
.
get
(
lsp
[
2
])
...
@@ -78,7 +82,7 @@ def parse_required_socket_line(node, line):
...
@@ -78,7 +82,7 @@ def parse_required_socket_line(node, line):
return
UNPARSABLE
return
UNPARSABLE
return
socket_type
,
socket_name
,
None
,
None
return
socket_type
,
socket_name
,
None
,
None
self
.
info
(
f
"
{
line
}
-> is malformed
"
)
node
.
error
(
f
'directive: (socket line)
"
{
line
}
"
-> is malformed
, missing socket type?'
)
return
UNPARSABLE
return
UNPARSABLE
...
...
Редактирование
Предварительный просмотр
Поддерживает Markdown
0%
Попробовать снова
или
прикрепить новый файл
.
Отмена
You are about to add
0
people
to the discussion. Proceed with caution.
Сначала завершите редактирование этого сообщения!
Отмена
Пожалуйста,
зарегистрируйтесь
или
войдите
чтобы прокомментировать