Add logging for unexpected OSError in [p]repo add (#3558)

* Update downloader.py

* Update downloader.py

Co-authored-by: Draper <27962761+Drapersniper@users.noreply.github.com>
This commit is contained in:
jack1142 2020-02-17 12:57:04 +01:00 committed by GitHub
parent f6c85cd37a
commit eff1014911
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -514,6 +514,9 @@ class Downloader(commands.Cog):
exc_info=err,
)
except OSError:
log.exception(
"Something went wrong trying to add repo %s under name %s", repo_url, name,
)
await ctx.send(
_(
"Something went wrong trying to add that repo."