From a38f108bd0e79a7d23f9bec49233953db57ff30b Mon Sep 17 00:00:00 2001 From: Harmon Date: Wed, 24 Mar 2021 03:54:32 -0500 Subject: [PATCH] Add TweepyException --- tweepy/__init__.py | 1 + tweepy/errors.py | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100644 tweepy/errors.py diff --git a/tweepy/__init__.py b/tweepy/__init__.py index 3f94ac4..557baeb 100644 --- a/tweepy/__init__.py +++ b/tweepy/__init__.py @@ -14,6 +14,7 @@ from tweepy.auth import AppAuthHandler, OAuthHandler from tweepy.cache import Cache, FileCache, MemoryCache from tweepy.cursor import Cursor from tweepy.error import RateLimitError, TweepError +from tweepy.errors import TweepyException from tweepy.models import DirectMessage, Friendship, ModelFactory, SavedSearch, SearchResults, Status, User from tweepy.streaming import Stream diff --git a/tweepy/errors.py b/tweepy/errors.py new file mode 100644 index 0000000..8989866 --- /dev/null +++ b/tweepy/errors.py @@ -0,0 +1,8 @@ +# Tweepy +# Copyright 2009-2021 Joshua Roesslein +# See LICENSE for details. + + +class TweepyException(Exception): + """Base exception for Tweepy""" + pass -- 2.25.1