mirror of
https://github.com/Relintai/ytdl_link_gen.git
synced 2024-12-20 01:16:50 +01:00
FIx error after a temp file ends up containing null.
This commit is contained in:
parent
00470654f5
commit
21ad8d2ed2
@ -743,6 +743,7 @@ class ChannelEntry:
|
|||||||
with open(self.temp_data_file) as f:
|
with open(self.temp_data_file) as f:
|
||||||
data = json.load(f)
|
data = json.load(f)
|
||||||
|
|
||||||
|
if not data is None:
|
||||||
self.was_cached = True
|
self.was_cached = True
|
||||||
|
|
||||||
return data
|
return data
|
||||||
|
Loading…
Reference in New Issue
Block a user