boto/boto — pull request #1327 by oozie (2013-02-17 17:52:39+00:00)
Title: Fixing the bug in logic of object's string representation.

The `__repr__` method incorrectly assumes a presence of a string in the `name` attribute of an SWFBase object. When an object has an empty name (used to set worker's identity in SWF) and a version attribute exists on it, the following happens:
```
>>> from boto.swf.layer2 import Decider
>>> Decider(version=None)
Traceback (most recent call last):
File "", line 1, in
File "boto/swf/layer2.py", line 46, in __repr__
rep_str += '-' + getattr(self, 'version')
TypeError: cannot concatenate 'str' and 'NoneType' objects
>>>
```
With this fix, the undesider behavior goes away.
```
>>> from boto.swf.layer2 import Decider
>>> Decider(version=None)

>>>
```