Skip to content

Commit

Permalink
#276 Fix ICE error breaking multiprocessing
Browse files Browse the repository at this point in the history
Now we correctly terminate without hanging.
  • Loading branch information
florianschanda committed Aug 7, 2023
1 parent be32183 commit b76e6e7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ Not quite compatible with Octave yet. See #43 [octave support](https://github.co
### 0.9.43-dev


* Fix hanging tools when an internal compiler error was raised.

### 0.9.42

Expand Down
4 changes: 2 additions & 2 deletions miss_hit_core/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def short_string(self):
class ICE(Exception):
""" Internal compiler errors """
def __init__(self, reason):
super().__init__()
super().__init__(reason)
self.reason = reason


Expand All @@ -123,7 +123,7 @@ def __init__(self, location, message):
assert isinstance(location, Location)
assert isinstance(message, str)

super().__init__()
super().__init__(message)
self.location = location
self.message = message

Expand Down

0 comments on commit b76e6e7

Please sign in to comment.