Skip to content

Commit

Permalink
Future work
Browse files Browse the repository at this point in the history
  • Loading branch information
kfsone committed Dec 29, 2014
1 parent a6f2929 commit b547052
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions commands/update_cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,30 @@ def guidedUpdate(tdb, cmdenv):
saveTemporaryFile(tmpPath)


def uploadUpdated():
try:
import requests
except ImportError:
if platform.system() == "Windows":
prompt = "C:\ThisDir\>"
else:
prompt = "$"
raise SystemExit("""Missing 'requests' module:
You don't appear to have the Python module "requests" installed.
It can be installed with Python's package installer, e.g:
{prompt} pip install requests
For additional help, consult:
Bitbucket Wiki http://kfs.org/td/wiki
Facebook Group http://kfs.org/td/group
ED Forum Thread http://kfs.org/td/thread
""".format(
prompt=prompt
))


######################################################################
# Perform query and populate result set

Expand Down

0 comments on commit b547052

Please sign in to comment.