def get_storage(self, exchange, symbol, timeframe): key = jh.key(exchange, symbol, timeframe) try: return self.storage[key] except KeyError: raise RouteNotFound( "Bellow route is required but missing in your routes:\n('{}', '{}', '{}')" .format(exchange, symbol, timeframe))
def get_storage(self, exchange: str, symbol: str, timeframe: str): key = jh.key(exchange, symbol, timeframe) try: return self.storage[key] except KeyError: raise RouteNotFound( f"Bellow route is required but missing in your routes:\n('{exchange}', '{symbol}', '{timeframe}')" )