diff options
Diffstat (limited to 'src/amount.cc')
-rw-r--r-- | src/amount.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/amount.cc b/src/amount.cc index 7c9a6931..a58cc215 100644 --- a/src/amount.cc +++ b/src/amount.cc @@ -740,7 +740,7 @@ void amount_t::annotate(const annotation_t& details) if (! quantity) throw_(amount_error, _("Cannot annotate the commodity of an uninitialized amount")); else if (! has_commodity()) - throw_(amount_error, _("Cannot annotate an amount with no commodity")); + return; // ignore attempt to annotate a "bare commodity if (commodity().annotated) { this_ann = &as_annotated_commodity(commodity()); |