8000 fix improper exception in timeresp.py · python-control/python-control@57ec9ff · GitHub
[go: up one dir, main page]

Skip to content

Commit 57ec9ff

Browse files
committed
fix improper exception in timeresp.py
1 parent f15fc0f commit 57ec9ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

control/timeresp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -642,7 +642,7 @@ def __len__(self):
642642
# Convert to pandas
643643
def to_pandas(self):
644644
if not pandas_check():
645-
ImportError('pandas not installed')
645+
raise ImportError("pandas not installed")
646646
import pandas
647647

648648
# Create a dict for setting up the data frame

0 commit comments

Comments
 (0)
0