Skip to content

Commit

Permalink
fixup name kwarg pop
Browse files Browse the repository at this point in the history
  • Loading branch information
sideshowdave7 committed Apr 19, 2017
1 parent 16f2ca3 commit 7b90c29
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion eventmq/jobmanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def __init__(self, *args, **kwargs):

#: Define the name of this JobManager instance. Useful to know when
#: referring to the logs.
self.name = kwargs.pop('name') or generate_device_name()
self.name = kwargs.pop('name', None) or generate_device_name()
logger.info('Initializing JobManager {}...'.format(self.name))

#: keep track of workers
Expand Down
2 changes: 1 addition & 1 deletion eventmq/sender.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def rebuild(self, *args, **kwargs):
if sys.version[0] == '2':
self.zsocket.setsockopt(zmq.IDENTITY, self.name)
else:
self.zsocket.setsockopt_string(zmq.IDENTITY, self.name)
self.zsocket.setsockopt_string(zmq.IDENTITY, str(self.name))

self.status = constants.STATUS.ready

Expand Down

0 comments on commit 7b90c29

Please sign in to comment.