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
Gabriel Monnerat
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
Hide 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):
...
@@ -41,7 +41,10 @@ def checkFeedAsPromise(feed, option):
feed
=
feedparser
.
parse
(
feed
)
feed
=
feedparser
.
parse
(
feed
)
if
feed
.
bozo
:
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
:
if
len
(
feed
.
entries
)
==
0
:
return
''
return
''
...
@@ -77,7 +80,7 @@ def checkFeedAsPromise(feed, option):
...
@@ -77,7 +80,7 @@ def checkFeedAsPromise(feed, option):
return
''
return
''
else
:
else
:
# If time-buffer is out, we are in stalled state
# 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 ?
# If not ok, and not stalled, what can have possibly happen ?
return
'Something went wrong'
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