Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Commit

Permalink
Initialize tags to be an empty TagSet rather than None. Fixes issue 462.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mitch Garnaat committed Oct 5, 2010
1 parent c190857 commit a6bf77b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions boto/ec2/ec2object.py
Expand Up @@ -54,11 +54,10 @@ class TaggedEC2Object(EC2Object):

def __init__(self, connection=None):
EC2Object.__init__(self, connection)
self.tags = None
self.tags = TagSet()

def startElement(self, name, attrs, connection):
if name == 'tagSet':
self.tags = TagSet()
return self.tags
else:
return None
Expand Down

0 comments on commit a6bf77b

Please sign in to comment.