Skip to content

Instantly share code, notes, and snippets.

@pykong
Created October 31, 2017 15:27
Show Gist options
  • Save pykong/61fb3c0f768216804b3390d648e65980 to your computer and use it in GitHub Desktop.
Save pykong/61fb3c0f768216804b3390d648e65980 to your computer and use it in GitHub Desktop.
except ValueError as err:
err.strerror = "New error message"
raise err
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment