diff options
author | John Wiegley <johnw@newartisans.com> | 2009-06-26 16:52:41 +0100 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-06-26 16:52:41 +0100 |
commit | 4574c30fcfd3b03bab9a368a6ff2928af7e11e28 (patch) | |
tree | 31112a34e89d39a51d6ed6f83e13978b69d97aa9 /src/quotes.cc | |
parent | 1fad2ec7c135ebe87bb34838f21adaac720dda03 (diff) | |
download | fork-ledger-4574c30fcfd3b03bab9a368a6ff2928af7e11e28.tar.gz fork-ledger-4574c30fcfd3b03bab9a368a6ff2928af7e11e28.tar.bz2 fork-ledger-4574c30fcfd3b03bab9a368a6ff2928af7e11e28.zip |
The --download option is now fully restored
Diffstat (limited to 'src/quotes.cc')
-rw-r--r-- | src/quotes.cc | 15 |
1 files changed, 11 insertions, 4 deletions
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; } |