title: Python: Ignore 'Incorrect padding' error when base64 decoding
body: <p>I have some data that is base64 encoded that I want to convert back to binary even if there is a padding error in it. If I use </p>
  
  <pre><code>base64.decodestring(b64_string)
  </code></pre>
  
  <p>it raises an 'Incorrect padding' error. Is there another way?</p>
  
  <p>UPDATE: Thanks for all the feedback. To be honest, all the methods mentioned sounded a bit hit
  and miss so I decided to try openssl. The following command worked a treat:</p>
  
  <pre><code>openssl enc -d -base64 -in b64string -out binary_data
  </code></pre>