passphera-core 0.25.0__tar.gz → 0.25.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {passphera_core-0.25.0 → passphera_core-0.25.1}/PKG-INFO +1 -1
- {passphera_core-0.25.0 → passphera_core-0.25.1}/passphera_core/exceptions.py +2 -5
- {passphera_core-0.25.0 → passphera_core-0.25.1}/passphera_core.egg-info/PKG-INFO +1 -1
- {passphera_core-0.25.0 → passphera_core-0.25.1}/setup.py +1 -1
- {passphera_core-0.25.0 → passphera_core-0.25.1}/README.md +0 -0
- {passphera_core-0.25.0 → passphera_core-0.25.1}/passphera_core/__init__.py +0 -0
- {passphera_core-0.25.0 → passphera_core-0.25.1}/passphera_core/application/__init__.py +0 -0
- {passphera_core-0.25.0 → passphera_core-0.25.1}/passphera_core/application/generator.py +0 -0
- {passphera_core-0.25.0 → passphera_core-0.25.1}/passphera_core/application/password.py +0 -0
- {passphera_core-0.25.0 → passphera_core-0.25.1}/passphera_core/entities.py +0 -0
- {passphera_core-0.25.0 → passphera_core-0.25.1}/passphera_core/interfaces.py +0 -0
- {passphera_core-0.25.0 → passphera_core-0.25.1}/passphera_core/utilities.py +0 -0
- {passphera_core-0.25.0 → passphera_core-0.25.1}/passphera_core.egg-info/SOURCES.txt +0 -0
- {passphera_core-0.25.0 → passphera_core-0.25.1}/passphera_core.egg-info/dependency_links.txt +0 -0
- {passphera_core-0.25.0 → passphera_core-0.25.1}/passphera_core.egg-info/requires.txt +0 -0
- {passphera_core-0.25.0 → passphera_core-0.25.1}/passphera_core.egg-info/top_level.txt +0 -0
- {passphera_core-0.25.0 → passphera_core-0.25.1}/setup.cfg +0 -0
@@ -1,19 +1,16 @@
|
|
1
|
-
from passphera_core.entities import Password
|
2
|
-
|
3
|
-
|
4
1
|
class PasswordNotFoundException(Exception):
|
5
2
|
def __init__(self) -> None:
|
6
3
|
super().__init__("Password not found")
|
7
4
|
|
8
5
|
|
9
6
|
class DuplicatePasswordException(Exception):
|
10
|
-
def __init__(self, password
|
7
|
+
def __init__(self, password) -> None:
|
11
8
|
self.password = password
|
12
9
|
message = self._build_message(password)
|
13
10
|
super().__init__(message)
|
14
11
|
|
15
12
|
@staticmethod
|
16
|
-
def _build_message(password
|
13
|
+
def _build_message(password) -> str:
|
17
14
|
if hasattr(password, 'context') and password.context:
|
18
15
|
return f"Password for context '{password.context}' already exists"
|
19
16
|
return "Duplicate password detected"
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{passphera_core-0.25.0 → passphera_core-0.25.1}/passphera_core.egg-info/dependency_links.txt
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|