Always define error before using it
When the error reason is "Forbidden", the code throws a Python exception rather than simply outputting the exception reason. It's not nice to throw a Python exception when all the info to display a proper message is available.
Showing
Please
register
or
sign in
to comment