Traceback (most recent call last):


 "/usr/local/lib/python3.7/site-packages/django/core/handlers/exception.py", line 34, in inner

response = get_response(request)


 "/usr/local/lib/python3.7/site-packages/django/core/handlers/base.py", line 115, in _get_response

response = self.process_exception_by_middleware(e, request)


 "/usr/local/lib/python3.7/site-packages/django/core/handlers/base.py", line 113, in _get_response

response = wrapped_callback(request, *callback_args, **callback_kwargs)


 "/usr/local/lib/python3.7/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view

return view_func(*args, **kwargs)


 "/usr/local/lib/python3.7/site-packages/rest_framework/viewsets.py", line 116, in view

return self.dispatch(request, *args, **kwargs)


 "/opt/netbox/netbox/utilities/api.py", line 282, in dispatch

return super().dispatch(request, *args, **kwargs)


 "/usr/local/lib/python3.7/site-packages/rest_framework/views.py", line 495, in dispatch

response = self.handle_exception(exc)


 "/usr/local/lib/python3.7/site-packages/rest_framework/views.py", line 455, in handle_exception

self.raise_uncaught_exception(exc)


 "/usr/local/lib/python3.7/site-packages/rest_framework/views.py", line 492, in dispatch

response = handler(request, *args, **kwargs)


 "/opt/netbox/netbox/utilities/api.py", line 303, in retrieve

return super().retrieve(*args, **kwargs)


 "/usr/local/lib/python3.7/site-packages/rest_framework/mixins.py", line 56, in retrieve

instance = self.get_object()


 "/usr/local/lib/python3.7/site-packages/rest_framework/generics.py", line 85, in get_object

queryset = self.filter_queryset(self.get_queryset())


 "/usr/local/lib/python3.7/site-packages/rest_framework/generics.py", line 152, in filter_queryset

queryset = backend().filter_queryset(self.request, queryset, self)


 "/usr/local/lib/python3.7/site-packages/django_filters/rest_framework/backends.py", line 96, in filter_queryset

return filterset.qs


 "/usr/local/lib/python3.7/site-packages/django_filters/filterset.py", line 237, in qs

qs = self.filter_queryset(qs)


 "/usr/local/lib/python3.7/site-packages/django_filters/filterset.py", line 224, in filter_queryset

queryset = self.filters[name].filter(queryset, value)


 "/usr/local/lib/python3.7/site-packages/django_filters/filters.py", line 232, in filter

if not value:


 "/usr/local/lib/python3.7/site-packages/django/db/models/query.py", line 278, in __bool__

self._fetch_all()


 "/usr/local/lib/python3.7/site-packages/cacheops/query.py", line 282, in _fetch_all

with redis_client.getting(cache_key, lock=lock) as cache_data:


 "/usr/local/lib/python3.7/contextlib.py", line 112, in __enter__

return next(self.gen)


 "/usr/local/lib/python3.7/site-packages/cacheops/redis.py", line 37, in getting

yield self.get(key)


 "/usr/local/lib/python3.7/site-packages/funcy/decorators.py", line 39, in wrapper

return deco(call, *dargs, **dkwargs)


 "/usr/local/lib/python3.7/site-packages/cacheops/redis.py", line 19, in handle_connection_failure

return call()


 "/usr/local/lib/python3.7/site-packages/funcy/decorators.py", line 60, in __call__

return self._func(*self._args, **self._kwargs)


 "/usr/local/lib/python3.7/site-packages/redis/client.py", line 1579, in get

return self.execute_command('GET', name)


 "/usr/local/lib/python3.7/site-packages/redis/client.py", line 878, in execute_command

return self.parse_response(conn, command_name, **options)


 "/usr/local/lib/python3.7/site-packages/redis/client.py", line 892, in parse_response

response = connection.read_response()


 "/usr/local/lib/python3.7/site-packages/redis/sentinel.py", line 55, in read_response

return super(SentinelManagedConnection, self).read_response()


 "/usr/local/lib/python3.7/site-packages/redis/connection.py", line 734, in read_response

response = self._parser.read_response()


 "/usr/local/lib/python3.7/site-packages/redis/connection.py", line 316, in read_response

response = self._buffer.readline()
AttributeError: 'NoneType' object has no attribute 'readline'

Traceback (most recent call last):


 "trade_bot.py", line 18, in <module>

api.get_bars("AAPL", TimeFrame.Hour, "2021-02-08", "2021-02-08", limit=10, adjustment='raw').df
AttributeError: type object 'TimeFrame' has no attribute 'Hour'