Skip to content
This repository was archived by the owner on Oct 22, 2024. It is now read-only.
This repository was archived by the owner on Oct 22, 2024. It is now read-only.

Don't raise with the Exception class #66

@edmondchuc

Description

@edmondchuc

In a few places in deta/base.py exceptions are raised with the Exception class.

See https://github.com/deta/deta-python/blob/5e68173ffea4b3dd2c3d75fadda4e3c9854d3199/deta/base.py.

raise Exception("Item with key '{4}' already exists".format(key))

raise Exception("Key '{}' not found".format(key))

It'd be better practice if custom exceptions were defined and derived from the general Exception class.

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