Swap content in try except block for a more logical flow
Created by: jarsi
Apparently pull requests that are closed and merged cannot be opened again. Thus I open a new pull request addressing the comments raised by @diesmann in PR #10. The logical order in the try except block has been swapped in a way that the new API is assumed to be the common case.