You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error in sys.excepthook:
Logging: too many values to unpack
Traceback (most recent call last):
File "test.py", line 11, in log_exception
logger.error("A python error occurred", exc_info = (exc_type, exc_value, exc_traceback))
File "C:\Python\2.7\lib\logging\__init__.py", line 1191, in error
self._log(ERROR, msg, args, **kwargs)
File "C:\Python\2.7\lib\logging\__init__.py", line 1284, in _log
self.handle(record)
File "C:\Python\2.7\lib\logging\__init__.py", line 1294, in handle
self.callHandlers(record)
File "C:\Python\2.7\lib\logging\__init__.py", line 1334, in callHandlers
hdlr.handle(record)
File "C:\Python\2.7\lib\logging\__init__.py", line 757, in handle
self.emit(record)
File "C:\Python\2.7\lib\site-packages\raygun4py\raygunprovider.py", line 183, in emit
self.sender.send_exception(userCustomData=userCustomData)
File "C:\Python\2.7\lib\site-packages\raygun4py\raygunprovider.py", line 97, in send_exception
errorMessage = raygunmsgs.RaygunErrorMessage(exc_type, exc_value, exc_traceback, options)
File "C:\Python\2.7\lib\site-packages\raygun4py\raygunmsgs.py", line 118, in __init__
self.className = exc_type.__name__
AttributeError: 'NoneType' object has no attribute '__name__'
Original exception was:
Traceback (most recent call last):
File "test.py", line 15, in <module>
(a, b) = (1, 2, 3,)
ValueError: too many values to unpack
Obviously, the second exception is correct and to be expected, but the first one is not.
The text was updated successfully, but these errors were encountered:
I've since figured out that the code from the official documentation works, but it's still a pretty bad experience that the example did not work. (And not exactly fitting the "Real time error reporting you can set up in under 5 minutes!" claim.)
Thanks for alerting us to this - the documentation on Heroku was outdated and for the original API, your corrected example is idiomatic for the current release. I'll get it tidied up for you shortly.
Using raygun4py 3.1.2 and Python 2.7.10, I was following the official getting started instructions from Heroku: https://devcenter.heroku.com/articles/raygun#using-with-python
Here's my entire test script (running locally, not on Heroku, with RAYGUN_APIKEY set):
And here's the error I'm getting from raygun4py:
Obviously, the second exception is correct and to be expected, but the first one is not.
The text was updated successfully, but these errors were encountered: