Skip to content

err return value improvements #14

@rsdoiel

Description

@rsdoiel

The value of an error should be returned as None not an empty string on success. This makes the code look more idiomatic even when returning a tuple where the last member is the err value.

err = dataset.create(c_name, key, obj)
if err is not None:
    print(f'cannot created {key}, {err}', file = sys.stderr)

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions