Commit bf26b713 authored by Nicholas J Anderson's avatar Nicholas J Anderson

Utilize short-circuit to avoid uninitialized variable

parent 3550fea9
Pipeline #4460 passed with stage
in 3 minutes and 42 seconds
......@@ -63,7 +63,7 @@ def load_gc_data():
# this handles events which start and end on the same day
# if we've found an error, there's no point in continuing
if datetime and (datetime.count("(") == 1) and (error == []):
if len(error) == 0 and datetime.count("(") == 1:
# parses out date info
try:
datesplit = datetime.split(", ")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment