A fix has been shipped, but it may not have arrived in your operating system’s repositories yet.
In such a case, you may be able to use certbot-auto instead, which will give you the latest version, or use one of the workarounds as detailed in the above thread.