Skip to content

Commit

Permalink
Merge pull request #123 from mcbirse/main
Browse files Browse the repository at this point in the history
Fix bug with error output when dateutil is missing
  • Loading branch information
jasonacox authored Nov 11, 2022
2 parents 5f45c10 + 5e625e1 commit 34774c8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tools/tesla-history/tesla-history.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,18 +36,18 @@
- For more usage options, run without arguments or --help:
python3 tesla-history.py --help
"""
import sys
import os
import argparse
import configparser
import time
from datetime import datetime, timedelta
try:
from dateutil.relativedelta import relativedelta
from dateutil.parser import isoparse
from dateutil import tz
except:
sys.exit("ERROR: Missing python dateutil module. Run 'pip install python-dateutil'.")
import time
import sys
import os
import argparse
import configparser
try:
import teslapy
except:
Expand Down

0 comments on commit 34774c8

Please sign in to comment.