[chirp_devel] How Would I Display 'image_version' and 'radio_version'?
Jim Unroe
Sat May 4 14:33:08 PDT 2013
On Sat, May 4, 2013 at 5:05 PM, Dan Smith <dsmith at danplanet.com> wrote:
> > How would I go about getting the 'image_version' and 'radio_version'
> > to display within this error message?
>
> Might be cleanest to separate out the building of the string from the
> raise. Something like:
>
> msg = ("Upload finished, but the 'Other Settings' "
> "could not be sent because the firmware "
> "version of the image (%s) does not match "
> "that of the radio (%s).")
> raise errors.RadioError(msg % (image_version, radio_version))
>
> Slick. Just what I was looking for.
Jim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://intrepid.danplanet.com/pipermail/chirp_devel/attachments/20130504/9ba18bc1/attachment-0001.html
More information about the chirp_devel
mailing list