Skip to content

Commit

Permalink
Merge pull request #82 from aivarannamaa/master
Browse files Browse the repository at this point in the history
Allow all Exceptions when importing optional modules
  • Loading branch information
alexmojaki authored Aug 25, 2020
2 parents 3ba5875 + 5ac4d69 commit a95b781
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions birdseye/bird.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@

try:
from numpy import ndarray
except ImportError:
except Exception:
class ndarray(object):
pass

try:
from pandas import DataFrame, Series
except ImportError:
except Exception:
class DataFrame(object):
pass

Expand All @@ -56,7 +56,7 @@ class Series(object):

try:
from django.db.models import QuerySet
except ImportError:
except Exception:
class QuerySet(object):
pass

Expand Down

0 comments on commit a95b781

Please sign in to comment.