Add TweepyException
authorHarmon <Harmon758@gmail.com>
Wed, 24 Mar 2021 08:54:32 +0000 (03:54 -0500)
committerHarmon <Harmon758@gmail.com>
Wed, 24 Mar 2021 08:54:55 +0000 (03:54 -0500)
tweepy/__init__.py
tweepy/errors.py [new file with mode: 0644]

index 3f94ac464f1641a1132855d188336cc29072e619..557baebcbeaec00c82c587497b578c7601c9cef2 100644 (file)
@@ -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 (file)
index 0000000..8989866
--- /dev/null
@@ -0,0 +1,8 @@
+# Tweepy
+# Copyright 2009-2021 Joshua Roesslein
+# See LICENSE for details.
+
+
+class TweepyException(Exception):
+    """Base exception for Tweepy"""
+    pass