Skip to content

Exit precise raise an ValueError exception #165

@corus87

Description

@corus87

Hi,
when I exit precise with a keyboard interrupt, it always raise an exception.
I already tried to catch it but without success. Would be nice to have a way to exit it without any exception.

Exception ignored in: <module 'threading' from '/home/pi/precise_trigger/precise-engine/threading.pyc'>
Traceback (most recent call last):
  File "threading.py", line 1279, in _shutdown
KeyboardInterrupt
Exception in thread Thread-4:
Traceback (most recent call last):
  File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.7/threading.py", line 865, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/local/lib/python3.7/dist-packages/precise_runner/runner.py", line 236, in _handle_predictions
    prob = self.engine.get_prediction(chunk)
  File "/usr/local/lib/python3.7/dist-packages/precise_runner/runner.py", line 67, in get_prediction
    return float(self.proc.stdout.readline())
ValueError: could not convert string to float: 

I hope someone got a hint for me how to catch this exception.
Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions