Skip to content

Commit

Permalink
Merge branch 'chunk-rename' of http://github.com/manahl/arctic into c…
Browse files Browse the repository at this point in the history
…hunk-rename
  • Loading branch information
bmoscon committed Aug 5, 2016
2 parents 20a4d9b + 3ba6997 commit 37e4829
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arctic/chunkstore/chunkstore.py
Expand Up @@ -141,7 +141,7 @@ def rename(self, from_symbol, to_symbol):
raise NoDataFoundException('No data found for %s' % (from_symbol))

if self._get_symbol_info(to_symbol) is not None:
raise Exception('Symbol %s already exists' % (from_symbol))
raise Exception('Symbol %s already exists' % (to_symbol))

mongo_retry(self._collection.update_many)({SYMBOL: from_symbol},
{'$set': {SYMBOL: to_symbol}})
Expand Down

0 comments on commit 37e4829

Please sign in to comment.