Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
protokollsystem
proto3
Commits
5f889eff
Commit
5f889eff
authored
Mar 06, 2017
by
Robin Sonnabend
Browse files
Add specific error if a protocol is imported from an empty etherpad.
/close
#27
parent
0737e4c6
Changes
1
Hide whitespace changes
Inline
Side-by-side
tasks.py
View file @
5f889eff
...
...
@@ -95,6 +95,11 @@ def parse_protocol_async_inner(protocol, encoded_kwargs):
db
.
session
.
add
(
error
)
db
.
session
.
commit
()
return
if
protocol
.
source
==
config
.
EMPTY_ETHERPAD
:
error
=
protocol
.
create_error
(
"Parsing"
,
"The etherpad is unmodified and does not contain a protocol."
,
protocol
.
source
)
db
.
session
.
add
(
error
)
db
.
session
.
commit
()
return
tree
=
None
try
:
tree
=
parse
(
protocol
.
source
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment