mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-06-05 11:27:13 +00:00
parent
881e598a6f
commit
d53c3a6c12
@ -49,9 +49,10 @@ def _err_lt(result, func, args):
|
|||||||
return result
|
return result
|
||||||
|
|
||||||
def _err_ne(result, func, args):
|
def _err_ne(result, func, args):
|
||||||
if result.value != 0:
|
ret = args[-1]._obj
|
||||||
|
if ret.value != 0:
|
||||||
log.info('error has happened in {0.__name__}'.format(func))
|
log.info('error has happened in {0.__name__}'.format(func))
|
||||||
raise OpusError(result.value)
|
raise OpusError(ret.value)
|
||||||
return result
|
return result
|
||||||
|
|
||||||
# A list of exported functions.
|
# A list of exported functions.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user