In configuration.py the schedule_source variable type varies depending if it is a URL or a local file. The former is a file-like and the latter a string. The write_file method in cache.py assumes a file object and tries to read() from the content param, this causes an error when the schedule_source of the configuration file is a local file (a str). With this PR the type of the schedule_source is str in both cases.
In configuration.py the
schedule_source
variable type varies depending if it is a URL or a local file. The former is a file-like and the latter a string. The write_file method in cache.py assumes a file object and tries to read() from the content param, this causes an error when the schedule_source of the configuration file is a local file (a str). With this PR the type of theschedule_source
is str in both cases.