Skip to content

Commit

Permalink
Make try-except more explicit: check ImportError
Browse files Browse the repository at this point in the history
  • Loading branch information
brandon-rhodes committed Aug 15, 2024
1 parent a0e6a05 commit 7133ef1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sgp4/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

try:
from unittest2 import TestCase, main
except:
except ImportError:
from unittest import TestCase, main

import datetime as dt
Expand Down

0 comments on commit 7133ef1

Please sign in to comment.