Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
proto3
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
protokollsystem
proto3
Commits
45bd0462
Commit
45bd0462
authored
7 years ago
by
Robin Sonnabend
Browse files
Options
Downloads
Patches
Plain Diff
Improve error message if top.name is None
/close
#196
parent
672a6434
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
tasks.py
+9
-2
9 additions, 2 deletions
tasks.py
with
9 additions
and
2 deletions
tasks.py
+
9
−
2
View file @
45bd0462
...
@@ -496,13 +496,20 @@ def parse_protocol_async_inner(protocol):
...
@@ -496,13 +496,20 @@ def parse_protocol_async_inner(protocol):
# TOPs
# TOPs
old_tops
=
list
(
protocol
.
tops
)
old_tops
=
list
(
protocol
.
tops
)
for
top
in
old_tops
:
tops
=
[]
protocol
.
tops
.
remove
(
top
)
for
index
,
fork
in
enumerate
(
for
index
,
fork
in
enumerate
(
(
child
for
child
in
tree
.
children
if
isinstance
(
child
,
Fork
))):
(
child
for
child
in
tree
.
children
if
isinstance
(
child
,
Fork
))):
top
=
TOP
(
top
=
TOP
(
protocol_id
=
protocol
.
id
,
name
=
fork
.
name
,
number
=
index
,
protocol_id
=
protocol
.
id
,
name
=
fork
.
name
,
number
=
index
,
planned
=
False
)
planned
=
False
)
if
top
.
name
is
None
:
return
_make_error
(
protocol
,
"
Parsing
"
,
"
TOP-Name fehlt
"
,
"'
{Name
'
sollte
'
{TOP Name
'
lauten.
"
)
tops
.
append
(
top
)
for
top
in
old_tops
:
protocol
.
tops
.
remove
(
top
)
for
top
in
tops
:
db
.
session
.
add
(
top
)
db
.
session
.
add
(
top
)
db
.
session
.
commit
()
db
.
session
.
commit
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment