Skip to content

Commit

Permalink
Mission exception default mutable argument (#946)
Browse files Browse the repository at this point in the history
* Fixed bug 690

* Fixed issues #639 and #690

* Remove unrelated changes

---------

Co-authored-by: Cameron Brown <[email protected]>
  • Loading branch information
OrganomagnesiumHalide and cbrxyz authored Mar 6, 2024
1 parent 444af15 commit 9884842
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions mil_common/mil_missions/mil_missions_core/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,12 @@ class MissionException(Exception):
parameters (Dict[Any, Any]): ???
"""

def __init__(self, message):
super(Exception, self).__init__(message)
def __init__(self, message, parameters=None):
if parameters is None:
parameters = {}

self.message = message
self.parameters = parameters


class TimeoutException(Exception):
Expand Down

0 comments on commit 9884842

Please sign in to comment.