matecsaj / ebay_rest

A pip package that conveniently wraps eBay’s RESTful APIs.
MIT License
43 stars 12 forks source link

In generators, don’t use ‘special records’ to return warnings. #46

Open matecsaj opened 2 years ago

matecsaj commented 2 years ago

The generator uses an exceptional record to return warnings. There are two problems with this:

  1. Users that are not interested in the warnings still have to code for it.
  2. Application code is a bit hard to read; the principal flow gets obscured by exception handling.

Review https://github.com/matecsaj/ebay_rest/issues/8 before proceeding. Ideas from @gbm001 merit revisiting.