HookedBehemoth / neuters

Reuters Redirect and Proxy
https://neuters.de/
GNU Affero General Public License v3.0
84 stars 7 forks source link

Bad handling of author count caused panic on empty list #3

Closed HookedBehemoth closed 2 years ago

HookedBehemoth commented 2 years ago

A scraper went over 4404 pages and stumbled over /world/middle-east/oil-slips-again-surging-us-dollar-holds-above-70-2021-06-18/ which causes a panic.

Needs investigation

HookedBehemoth commented 2 years ago

thread '<unnamed>' panicked at 'attempt to subtract with overflow', src\api\byline.rs:12:33

HookedBehemoth commented 2 years ago

Apparently nobody wrote this article.

HookedBehemoth commented 2 years ago

Fixed in https://github.com/HookedBehemoth/supreme-waffle/commit/bfc7ddb061ca6d1336ab5c8e23152fd976cbd7d1