Traceback (most recent call last):

 "/usr/lib/python3.4/site-packages/tornado/http1connection.py", line 236, in _read_message
delegate.finish()

 "/usr/lib/python3.4/site-packages/tornado/httpserver.py", line 269, in finish
self.delegate.finish()

 "/usr/lib/python3.4/site-packages/tornado/web.py", line 1898, in finish
self.execute()

 "/usr/lib/python3.4/site-packages/tornado/web.py", line 1930, in execute
f.add_done_callback(lambda f: f.exception())AttributeError: 'NoneType' object has no attribute 'add_done_callback'
Traceback (most recent call last):


 "freqtrade/main.py", line 52, in main

worker.run()


 "/home/martos/freqtrade/freqtrade/worker.py", line 72, in run

state = self._worker(old_state=state)


 "/home/martos/freqtrade/freqtrade/worker.py", line 110, in _worker

self._throttle(func=self._process, min_secs=throttle_secs)


 "/home/martos/freqtrade/freqtrade/worker.py", line 123, in _throttle

result = func(*args, **kwargs)


 "/home/martos/freqtrade/freqtrade/worker.py", line 133, in _process

state_changed = self.freqtrade.process()


 "/home/martos/freqtrade/freqtrade/freqtradebot.py", line 136, in process

state_changed |= self.process_maybe_execute_sell(trade)


 "/home/martos/freqtrade/freqtrade/freqtradebot.py", line 449, in process_maybe_execute_sell

self.update_trade_state(trade)


 "/home/martos/freqtrade/freqtrade/freqtradebot.py", line 525, in update_trade_state

new_amount = self.get_real_amount(trade, order)


 "/home/martos/freqtrade/freqtrade/freqtradebot.py", line 483, in get_real_amount

if trade.pair.startswith(order['fee']['currency']):
TypeError: startswith first arg must be str or a tuple of str, not NoneType
