Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions onvif/utils/error_handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
- `zeep.exceptions.Fault`: Base SOAP fault exception
"""

from __future__ import annotations

import logging
from collections.abc import Callable
from typing import Any
Expand Down
4 changes: 3 additions & 1 deletion onvif/utils/exceptions.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
"""ONVIFOperationException: Enhanced exception wrapper for ONVIF operation failures."""

from __future__ import annotations

import requests
from zeep.exceptions import Fault

Expand Down Expand Up @@ -86,7 +88,7 @@ class ONVIFOperationException(Exception):
- `requests.exceptions.RequestException`: Base HTTP error
"""

def __init__(self, operation, original_exception):
def __init__(self, operation: str, original_exception: Exception):
self.operation = operation
self.original_exception = original_exception

Expand Down
2 changes: 2 additions & 0 deletions onvif/utils/zeep.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
"""ZeepPatcher: Patch zeep SOAP library to handle ONVIF `xsd:any` fields."""

from __future__ import annotations

import logging
from collections.abc import Callable
from typing import Any
Expand Down
Loading