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
99c47201
Commit
99c47201
authored
3 years ago
by
Magnus Giesbert
Browse files
Options
Downloads
Patches
Plain Diff
Only check protocol text against default Etherpad text if `config.ETHERPAD_ACTIVE` is true.
parent
55f30752
No related branches found
No related tags found
1 merge request
!16
Fix errors through config options
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
tasks.py
+1
-1
1 addition, 1 deletion
tasks.py
with
1 addition
and
1 deletion
tasks.py
+
1
−
1
View file @
99c47201
...
@@ -182,7 +182,7 @@ def parse_protocol_async_inner(protocol):
...
@@ -182,7 +182,7 @@ def parse_protocol_async_inner(protocol):
db
.
session
.
commit
()
db
.
session
.
commit
()
if
protocol
.
source
is
None
or
len
(
protocol
.
source
.
strip
())
==
0
:
if
protocol
.
source
is
None
or
len
(
protocol
.
source
.
strip
())
==
0
:
return
_make_error
(
protocol
,
"
Parsing
"
,
"
Protocol source is empty
"
,
""
)
return
_make_error
(
protocol
,
"
Parsing
"
,
"
Protocol source is empty
"
,
""
)
if
protocol
.
source
==
config
.
EMPTY_ETHERPAD
:
if
config
.
ETHERPAD_ACTIVE
and
protocol
.
source
==
config
.
EMPTY_ETHERPAD
:
return
_make_error
(
return
_make_error
(
protocol
,
"
Parsing
"
,
"
The etherpad is unmodified and does not
"
protocol
,
"
Parsing
"
,
"
The etherpad is unmodified and does not
"
"
contain a protocol.
"
,
protocol
.
source
)
"
contain a protocol.
"
,
protocol
.
source
)
...
...
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