Merge pull request #1859 from hroff-1902/freqtrade-exceptions
minor: inherit freqtrade exceptions from Exception instead of BaseException
This commit is contained in:
commit
e0310906c7
@ -2,14 +2,14 @@
|
|||||||
__version__ = '0.18.5-dev'
|
__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.
|
This could happen when there is currently not enough money on the account.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
class OperationalException(BaseException):
|
class OperationalException(Exception):
|
||||||
"""
|
"""
|
||||||
Requires manual intervention.
|
Requires manual intervention.
|
||||||
This happens when an exchange returns an unexpected error during runtime
|
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:
|
This is returned when the order is not valid. Example:
|
||||||
If stoploss on exchange order is hit, then trying to cancel the order
|
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.
|
Temporary network or exchange related error.
|
||||||
This could happen when an exchange is congested, unavailable, or the user
|
This could happen when an exchange is congested, unavailable, or the user
|
||||||
|
Loading…
Reference in New Issue
Block a user