Skip to content

Commit

Permalink
🎨 use the TelloException when raising exceptions from TelloSwarm (ref #…
Browse files Browse the repository at this point in the history
  • Loading branch information
M4GNV5 committed Dec 27, 2021
1 parent f0209da commit 9acec07
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion djitellopy/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
from .tello import Tello, BackgroundFrameRead
from .tello import Tello, TelloException, BackgroundFrameRead
from .swarm import TelloSwarm
4 changes: 2 additions & 2 deletions djitellopy/swarm.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from queue import Queue
from typing import List, Callable

from .tello import Tello
from .tello import Tello, TelloException
from .enforce_types import enforce_types


Expand Down Expand Up @@ -40,7 +40,7 @@ def fromIps(ips: list):
ips: list of IP Addresses
"""
if not ips:
raise ValueError("No ips provided")
raise TelloException("No ips provided")

tellos = []
for ip in ips:
Expand Down

0 comments on commit 9acec07

Please sign in to comment.