Refactor: Code cleanup
This commit is contained in:
parent
f8eb491607
commit
7a3df8a64b
@ -10,10 +10,8 @@ pssh = PSSH(pssh)
|
|||||||
|
|
||||||
# load device
|
# load device
|
||||||
try:
|
try:
|
||||||
with open('device.wvd', 'wb') as f:
|
wvd = await (await pyfetch("device.wvd")).bytes()
|
||||||
wvdExt=await (await pyfetch("device.wvd")).bytes()
|
device = Device.loads(wvd)
|
||||||
f.write(wvdExt)
|
|
||||||
device = Device.load("device.wvd")
|
|
||||||
except OSError:
|
except OSError:
|
||||||
try:
|
try:
|
||||||
print("device.wvd not found! looking for device_client_id_blob and device_private_key...")
|
print("device.wvd not found! looking for device_client_id_blob and device_private_key...")
|
||||||
|
Loading…
Reference in New Issue
Block a user