Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.toolbox
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Guillaume Hervier
slapos.toolbox
Commits
531888b1
Commit
531888b1
authored
Oct 13, 2016
by
Nicolas Wavrant
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
checkfeedaspromise: makes error messages more verbose
parent
c8e33cf1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
slapos/checkfeedaspromise.py
slapos/checkfeedaspromise.py
+5
-2
No files found.
slapos/checkfeedaspromise.py
View file @
531888b1
...
...
@@ -41,7 +41,10 @@ def checkFeedAsPromise(feed, option):
feed
=
feedparser
.
parse
(
feed
)
if
feed
.
bozo
:
return
'Feed malformed'
return
'Feed malformed : %s (at line %s)'
%
(
feed
.
bozo_exception
.
getMessage
(),
feed
.
bozo_exception
.
getLineNumber
(),
)
if
len
(
feed
.
entries
)
==
0
:
return
''
...
...
@@ -77,7 +80,7 @@ def checkFeedAsPromise(feed, option):
return
''
else
:
# If time-buffer is out, we are in stalled state
return
'Stalled situation
'
return
'Stalled situation
: Nothing happened since %s'
%
publication_date
# If not ok, and not stalled, what can have possibly happen ?
return
'Something went wrong'
...
...
Write
Preview
Markdown
is supported
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