Traceback (most recent call last):


 "/home/user/freqtrade/freqtrade/rpc/telegram.py", line 52, in wrapper

return command_handler(self, *args, **kwargs)


 "/home/user/freqtrade/freqtrade/rpc/telegram.py", line 298, in _profit

fiat_disp_cur)


 "/home/user/freqtrade/freqtrade/rpc/rpc.py", line 244, in _rpc_trade_statistics

profit_percent = trade.calc_profit_ratio()


 "/home/user/freqtrade/freqtrade/persistence.py", line 408, in calc_profit_ratio

profit_percent = (close_trade_price / self.open_trade_price) - 1
TypeError: unsupported operand type(s) for /: 'float' and 'NoneType'

Traceback (most recent call last):


 "/usr/lib/python2.7/dist-packages/tornado/web.py", line 1046, in _stack_context_handle_exception

raise_exc_info((type, value, traceback))


 "/usr/lib/python2.7/dist-packages/tornado/web.py", line 1164, in wrapper

return method(self, *args, **kwargs)


 "/usr/local/lib/python2.7/dist-packages/motioneye-0.38-py2.7.egg/motioneye/handlers.py", line 275, in get

self.list()


 "/usr/local/lib/python2.7/dist-packages/motioneye-0.38-py2.7.egg/motioneye/handlers.py", line 205, in wrapper

return func(self, *args, **kwargs)


 "/usr/local/lib/python2.7/dist-packages/motioneye-0.38-py2.7.egg/motioneye/handlers.py", line 623, in list

callback=on_response)


 "/usr/local/lib/python2.7/dist-packages/motioneye-0.38-py2.7.egg/motioneye/utils.py", line 441, in test_mjpeg_url

do_request(on_response)


 "/usr/local/lib/python2.7/dist-packages/motioneye-0.38-py2.7.egg/motioneye/utils.py", line 398, in do_request

header_callback=on_header, validate_cert=settings.VALIDATE_CERTS)
TypeError: __init__() got an unexpected keyword argument 'auth_mode'
