Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
mason-today-web
Commits
f1c6cd43
Commit
f1c6cd43
authored
Aug 20, 2018
by
Landon DeCoito
Browse files
Fixed error messages in GC Script
parent
270345df
Changes
1
Hide whitespace changes
Inline
Side-by-side
mason-today/getconnectedscript.py
View file @
f1c6cd43
...
...
@@ -6,8 +6,6 @@ import feedparser
from
bs4
import
BeautifulSoup
import
requests
# DEV REMINDER: CHANGE THE LINES IN INTIALISATION ERROR MESSAGE (LINE 138)
def
splitAndConvertTime
(
strin
):
strin
=
strin
.
replace
(
" "
,
""
)
...
...
@@ -34,7 +32,6 @@ def load_gc_data():
feed
=
feedparser
.
parse
(
feedtext
)
dictlist
=
[]
datetime
=
""
for
entry
in
feed
.
entries
:
error
=
[]
...
...
@@ -60,6 +57,8 @@ def load_gc_data():
# print datetime
except
Exception
as
e
:
error
.
append
(
str
(
e
))
dictlist
.
append
({
"error"
:
error
})
continue
# this handles events which start and end on the same day
# if we've found an error, there's no point in continuing
...
...
@@ -139,8 +138,7 @@ def load_gc_data():
else
:
dictlist
.
append
({
"id"
:
uniqueid
,
"error"
:
str
(
e
)})
else
:
dictlist
.
append
({
"error"
:
"issue in initialization of event.
\
check lines 40-56 in getconnectedscript.py"
})
dictlist
.
append
({
"error"
:
error
})
return
dictlist
# Every event has:
...
...
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