@@ 1344,14 1344,15 @@ def phexport(ui, repo, *args, **opts):
result = bz.get_bug(auth, bug, include_fields=['assigned_to', 'status'])
taker = auth.username(api_server)
if result['assigned_to_detail']['name'] != taker:
- params = {'assigned_to': taker}
+ params = {'assigned_to': taker.decode()}
if result['status'] != 'RESOLVED':
params['status'] = 'ASSIGNED'
try:
if not ui.config(b'bzexport', b'dry-run', False):
bz.update_bug(auth, result['id'], params)
except Exception as e:
- raise error.Abort(e.message)
+ import pdb; pdb.set_trace()
+ raise error.Abort(str(e))
def parse_description(ui, desc, commit_message, bug, create_new_bug,
auto_review=False):