Skip to content

Instantly share code, notes, and snippets.

@etscrivner
Created July 31, 2013 19:47
Show Gist options
  • Save etscrivner/6125488 to your computer and use it in GitHub Desktop.
Save etscrivner/6125488 to your computer and use it in GitHub Desktop.
======================================================================
ERROR: Should return aggregated daily stats for each child object
----------------------------------------------------------------------
Traceback (most recent call last):
File "/vagrant/ge/stats/tests/test_roll_ups.py", line 88, in test_should_return_aggregated_daily_stats_for_each_child
results = rebuild_rollups(self.data_source, date.today())
File "/vagrant/ge/stats/utils.py", line 130, in rebuild_rollups
network_type=1
File "/vagrant/ge/stats/models.py", line 83, in create
network_type=network_type
File "/usr/local/lib/python2.7/dist-packages/cqlengine/models.py", line 245, in create
return cls.objects.create(**kwargs)
File "/usr/local/lib/python2.7/dist-packages/cqlengine/query.py", line 606, in create
return self.model(**kwargs).batch(self._batch).save()
File "/usr/local/lib/python2.7/dist-packages/cqlengine/models.py", line 262, in save
DMLQuery(self.__class__, self, batch=self._batch).save()
File "/usr/local/lib/python2.7/dist-packages/cqlengine/query.py", line 849, in save
execute(qs, query_values)
File "/usr/local/lib/python2.7/dist-packages/cqlengine/connection.py", line 174, in execute
return connection_pool.execute(query, params)
AttributeError: 'NoneType' object has no attribute 'execute'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment