Fix size parsing

This commit is contained in:
Nick Mowen 2022-09-25 08:40:57 -06:00
parent a50534ebc6
commit 23a32f9898

View File

@ -288,6 +288,11 @@ class RecordingMaintainer(threading.Thread):
except OSError:
segment_size = -1
try:
segment_size = float(os.path.getsize(file_path)) / 1000
except OSError:
segment_size = -1
rand_id = "".join(
random.choices(string.ascii_lowercase + string.digits, k=6)
)