fix unittests, empty cookiefile
This commit is contained in:
parent
71bc8383e5
commit
6adae31641
|
|
@ -134,6 +134,10 @@ class YtWrap:
|
|||
|
||||
def _validate_cookie(self):
|
||||
"""check cookie and write it back for next use"""
|
||||
if not self.obs.get("cookiefile"):
|
||||
# empty in tests
|
||||
return
|
||||
|
||||
self.obs["cookiefile"].seek(0)
|
||||
new_cookie = self.obs["cookiefile"].read().strip("\x00")
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue