Skip to content

Commit

Permalink
Fixed unhandled error #474
Browse files Browse the repository at this point in the history
  • Loading branch information
Hermann Romanek committed Apr 21, 2024
1 parent 93057fb commit d2d3bfd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/sniffles/utils/resmon.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,10 @@ def __init__(self, config: SnifflesConfig):

try:
from psutil import Process
except ImportError as ex:
except ImportError:
logging.getLogger('sniffles.dependencies').warning(f'Dependency psutil not available - resource monitoring is disabled.')
self._process = None
self._workers = {}
else:
self._process = Process(self._pid)

Expand Down

0 comments on commit d2d3bfd

Please sign in to comment.