From 2741c5c3307ffb1a89e0815ba5047d9e13403d82 Mon Sep 17 00:00:00 2001 From: hroff-1902 Date: Thu, 16 May 2019 22:38:59 +0300 Subject: [PATCH] inherit freqtrade exceptions from Exception i.o. BaseException --- freqtrade/__init__.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/freqtrade/__init__.py b/freqtrade/__init__.py index f84f5240e..340d5b515 100644 --- a/freqtrade/__init__.py +++ b/freqtrade/__init__.py @@ -2,14 +2,14 @@ __version__ = '0.18.5-dev' -class DependencyException(BaseException): +class DependencyException(Exception): """ - Indicates that a assumed dependency is not met. + Indicates that an assumed dependency is not met. This could happen when there is currently not enough money on the account. """ -class OperationalException(BaseException): +class OperationalException(Exception): """ Requires manual intervention. This happens when an exchange returns an unexpected error during runtime @@ -17,7 +17,7 @@ class OperationalException(BaseException): """ -class InvalidOrderException(BaseException): +class InvalidOrderException(Exception): """ This is returned when the order is not valid. Example: If stoploss on exchange order is hit, then trying to cancel the order @@ -25,7 +25,7 @@ class InvalidOrderException(BaseException): """ -class TemporaryError(BaseException): +class TemporaryError(Exception): """ Temporary network or exchange related error. This could happen when an exchange is congested, unavailable, or the user