diff options
author | Michael Denkowski <mdenkows@cs.cmu.edu> | 2013-09-30 23:30:51 -0700 |
---|---|---|
committer | Michael Denkowski <mdenkows@cs.cmu.edu> | 2013-09-30 23:30:51 -0700 |
commit | ddbd0a5fb4a6edc6728e1ba8e9bd7c82186958ac (patch) | |
tree | 4208accb533939de9c14894f1050bb04154aba2a | |
parent | 3cc87778e8985ff7e1bcf3a4a12d071c2ddd5639 (diff) |
Release lock on exception
-rw-r--r-- | realtime/rt/decoder.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/realtime/rt/decoder.py b/realtime/rt/decoder.py index 15f7db3f..1cee4610 100644 --- a/realtime/rt/decoder.py +++ b/realtime/rt/decoder.py @@ -63,6 +63,7 @@ class MIRADecoder(Decoder): self.decoder.stdin.write('WEIGHTS ||| {}\n'.format(w_line)) self.lock.release() except: + self.lock.release() raise Exception('Invalid weights line: {}'.format(w_line)) |