This commit is contained in:
Daniel Langbein 2023-10-05 18:57:33 +02:00
parent 5e7e19bb5b
commit b5416a98ba
Signed by: langfingaz
GPG Key ID: 6C47C753F0823002
2 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@
[metadata] [metadata]
name = de.p1st.monitor name = de.p1st.monitor
version = 0.10.1 version = 0.10.2
author = Daniel Langbein author = Daniel Langbein
author_email = daniel@systemli.org author_email = daniel@systemli.org
description = periodically monitor and warn description = periodically monitor and warn

View File

@ -42,7 +42,7 @@ class DriveLogger(Logger):
# `device` is not `None`, `uuid` might be `None`. # `device` is not `None`, `uuid` might be `None`.
if uuid is None: if uuid is None:
try: try:
self.uuid = self.get_uuid_from_partition(device) uuid = self.get_uuid_from_partition(device)
except BlkidException as e: except BlkidException as e:
raise LoggerArgEx(getattr(e, 'message', e)) raise LoggerArgEx(getattr(e, 'message', e))
# Store as attributes. # Store as attributes.