title: Logging just arised exception
body: <p>Is this idiomatic/pythonic to do like this or is there a better way? I want all the errors to get in log for in case I don't have access to the console output. Also I want to abort this code path in case the problem arises. </p>
  
  <pre><code>    try:
        with open(self._file_path, "wb") as out_f:
             out_f.write(...)
             ...
      except OSError as e:
          log("Saving %s failed: %s" % (self._file_path, str(e)))
          raise
  </code></pre>
  
  <p>EDIT: this question is about handling exceptions in a correct place/with correct idiom. It is not about <code>logging</code> class. </p>