OGKevin / ComBunqWebApp

A Bunq web interface made by bunqers
https://bunqweb.com
MIT License
26 stars 3 forks source link

TypeError: unhashable type: 'slice' #94

Closed OGKevin closed 7 years ago

OGKevin commented 7 years ago

https://sentry.io/share/issue/3137323731332e323839393139333430/

TypeError: unhashable type: 'slice'
(2 additional frame(s) were not displayed)
...
  File "django/core/handlers/base.py", line 185, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "django/views/generic/base.py", line 68, in view
    return self.dispatch(request, *args, **kwargs)
  File "django/views/generic/base.py", line 88, in dispatch
    return handler(request, *args, **kwargs)
  File "BunqWebApp/views.py", line 33, in get
    data = self.get_releases()
  File "BunqWebApp/views.py", line 40, in get_releases
    data = res[:7]

TypeError: unhashable type: 'slice'

If the releases from github cannot be received the view will not be returned. The github releases should be retrieved from JS, or the view should still render on this error.