From 4574c30fcfd3b03bab9a368a6ff2928af7e11e28 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Fri, 26 Jun 2009 16:52:41 +0100 Subject: The --download option is now fully restored --- src/quotes.cc | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'src/quotes.cc') diff --git a/src/quotes.cc b/src/quotes.cc index ef7b769e..d4be462e 100644 --- a/src/quotes.cc +++ b/src/quotes.cc @@ -94,10 +94,17 @@ commodity_quote_from_script(commodity_t& commodity, return point; } } else { - throw_(std::runtime_error, - _("Failed to download price for '%1' (command: \"getquote %2 %3\")") - << commodity.symbol() << commodity.symbol() - << (exchange_commodity ? exchange_commodity->symbol() : "''")); + DEBUG("commodity.download", + "Failed to download price for '" << commodity.symbol() << + "' (command: \"getquote " << commodity.symbol() << + " " << (exchange_commodity ? + exchange_commodity->symbol() : "''") << "\")"); + + // Don't try to download this commodity again. + + // jww (2009-06-24): This flag should be removed in order to try again + // when using a GUI. + commodity.add_flags(COMMODITY_NOMARKET); } return none; } -- cgit v1.2.3