mirror of
https://github.com/FAUSheppy/ths-reference-data-collector
synced 2026-06-19 04:52:37 +02:00
fix: windows stat check exists first
This commit is contained in:
@@ -53,7 +53,7 @@ def downloadFlugfeldData(fromTime, toTime, dtype):
|
|||||||
fullpath = os.path.join(cacheDir, cacheFile)
|
fullpath = os.path.join(cacheDir, cacheFile)
|
||||||
|
|
||||||
# remove empty placeholder cache file #
|
# remove empty placeholder cache file #
|
||||||
if os.path.getsize(fullpath) == 0:
|
if os.path.isfile(fullpath) and os.path.getsize(fullpath) == 0:
|
||||||
os.remove(fullpath)
|
os.remove(fullpath)
|
||||||
|
|
||||||
# check for cache file
|
# check for cache file
|
||||||
|
|||||||
Reference in New Issue
Block a user