aus10powell commited on
Commit
8b9df37
1 Parent(s): ef02346

Update scripts/twitter_scraper.py

Browse files
Files changed (1) hide show
  1. scripts/twitter_scraper.py +1 -1
scripts/twitter_scraper.py CHANGED
@@ -51,7 +51,7 @@ def get_latest_account_tweets(handle):
51
 
52
  return df_tweets
53
 
54
- except tweepy.TweepError as e:
55
  # Handle specific error conditions
56
  if e.api_code == 63:
57
  print("User has been suspended.")
 
51
 
52
  return df_tweets
53
 
54
+ except tweepy.errors as e:
55
  # Handle specific error conditions
56
  if e.api_code == 63:
57
  print("User has been suspended.")