Print number for error

This commit is contained in:
Lasse 2022-12-22 06:46:52 +00:00
parent 109c889d59
commit 625ce4d0f1

View File

@ -39,14 +39,14 @@ def stream():
try: try:
source_tweet = str(json_response['data']['id']) source_tweet = str(json_response['data']['id'])
except Exception as e: except Exception as e:
print(json_response) print(1, json_response)
print(e) print(e)
source_tweet = 'user' source_tweet = 'user'
# Add Mastodon username to db. # Add Mastodon username to db.
db.insert_user(twitter_username, mastodon_username, source_tweet) db.insert_user(twitter_username, mastodon_username, source_tweet)
except Exception as e: except Exception as e:
print(json_response) print(2, json_response)
print(e) print(e)
pass pass