urbanairship / python-library

A Python library for using the Airship APIs for push notifications, reporting and other message types
https://docs.airship.com/api/libraries/python/
Other
82 stars 65 forks source link

A little optimize for exception catch #50

Closed AntmanTmp closed 3 years ago

AntmanTmp commented 3 years ago

If you want your PR addressed quickly, please also reach out to our support team so we can understand when you need it reviewed and how it is impacting your use of our services. We also generally will not release new versions of our library without new feature support, a bug fix, or a clear reason from a customer why an update is required to minimize how often other customers need to update.

What does this do and why?

  1. For any exceptions, we need to add the dunder str method to make sure the user can print the exception message
  2. For requests, we need to catch URL schema error or TCP connection error.

Additional notes for reviewers

Testing

Airship Contribution Agreement

Link here

Screenshots