Skip to content

Commit

Permalink
fix3
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillaume De Saint Martin committed Oct 26, 2020
1 parent e3c5e5e commit 7b67af2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion octobot_trading/personal_data/orders/order_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ def get_logger(self):
"""
:return: the order logger
"""
return logging.get_logger(self.order.get_logger_name())
return logging.get_logger(self.order.get_logger_name() if self.order is not None else
f"{self.__class__.__name__}_without_order")

def log_order_event_message(self, state_message):
"""
Expand Down

0 comments on commit 7b67af2

Please sign in to comment.