- if rq.status_code != 201 and rq.status_code != 409:
- raise Exception("Unable to create an account for number provision")
- self.logger.debug('Account is created on Ellis: %s', params)
+ if req.status_code != 201 and req.status_code != 409:
+ raise Exception(
+ "Unable to create an account {}\n{}".format(
+ params, req.text))
+ self.logger.debug(
+ 'Account %s is created on Ellis\n%s', params, req.json())