Skip to content

unnecessary check for None #27

@huguesv

Description

@huguesv

In servicebusservice.py and in storageclient.py the function:

def _perform_request(self, request):

does not need to check:

if not resp:
return None

Both functions can be changed to the following:

def _perform_request(self, request):
try:
return self._filter(request)
except HTTPError as e:
return _service_bus_error_handler(e)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions