Skip to content

Commit

Permalink
Add PyYAML warning in interactive_console.py (fix #167)
Browse files Browse the repository at this point in the history
  • Loading branch information
dj-ratty committed Nov 15, 2023
1 parent c5dbeaa commit 2aa5c5d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion interactive_console.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,15 @@
from builtins import input

import pytumblr
import yaml
import os
import code
from requests_oauthlib import OAuth1Session
try:
import yaml
except ImportError:
print('You need PyYAML to run interactive console\npip install pyyaml')
import sys
sys.exit(-1)


def new_oauth(yaml_path):
Expand Down

0 comments on commit 2aa5c5d

Please sign in to comment.