mirror of
https://github.com/dylanaraps/pywal.git
synced 2025-05-20 00:00:53 +02:00
Merge 71a17a6955
into 236aa48e74
This commit is contained in:
commit
43513f2f80
@ -202,6 +202,10 @@ def get(cache_dir=CACHE_DIR):
|
|||||||
current_wall = os.path.join(cache_dir, "wal")
|
current_wall = os.path.join(cache_dir, "wal")
|
||||||
|
|
||||||
if os.path.isfile(current_wall):
|
if os.path.isfile(current_wall):
|
||||||
return util.read_file(current_wall)[0]
|
# make sure the file has some content in it,
|
||||||
|
contents = util.read_file(current_wall)
|
||||||
|
|
||||||
|
if len(contents) > 0:
|
||||||
|
return contents [0]
|
||||||
|
|
||||||
return "None"
|
return "None"
|
||||||
|
Loading…
Reference in New Issue
Block a user