Skip to content

Commit

Permalink
Merge pull request #62 from kyleMR/patch-1
Browse files Browse the repository at this point in the history
Updating npsupport.py to fail gracefully without numpy
  • Loading branch information
cfarrow committed Jun 11, 2014
2 parents b8179ee + 4e04db7 commit f269c84
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions comtypes/npsupport.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ def isdatetime64(value):
This cannot succeed if datetime64 is not available.
"""
if not HAVE_NUMPY:
return False
return isinstance(value, datetime64)


Expand Down

0 comments on commit f269c84

Please sign in to comment.