place the conditional statement where fetchData() is called

move it out from the definition
12 jobs for v1.0.0_issue577 in 29 minutes and 17 seconds (queued for 10 seconds)
Status Name Job ID Coverage
  Build
passed build #1423783

00:14:36

 
  Prepare
passed prepare #1423784

00:00:42

 
  Test
passed dev setup tests #1423790

00:13:15

passed gui linting #1423786

00:04:08

passed gui tests #1423788

00:04:31

passed install tests #1423789

00:07:01

passed python linting #1423785

00:06:00

passed python tests #1423787

00:13:58

81.0%
 
  Release
manual deploy dev #1423791
allowed to fail manual
manual pypi package #1423794
allowed to fail manual
manual python package #1423793
allowed to fail manual
manual release latest image #1423792
allowed to fail manual