Skip to content

Commit

Permalink
Merge in @doomrobo feature addition, fix small bug
Browse files Browse the repository at this point in the history
  • Loading branch information
hausdorff committed Dec 27, 2013
1 parent 4020d64 commit e4bcd2d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions sfs
Expand Up @@ -73,7 +73,6 @@ def initialize_user():
w.write("USERNAME=%s\n" % username.lower())
w.write("PASSWORD=%s\n" % password)


def init_settings_from_config_file():
"""
Create settings dictionary mapping attribute -> value. Contains, e.g.,
Expand Down Expand Up @@ -112,7 +111,6 @@ def init_settings_from_config_file():

return SETTINGS


def create_dir_if_not_exists(directory):
"""
Simple utility function creates a directory if it doesn't exist.
Expand Down Expand Up @@ -149,6 +147,7 @@ def main():
arguments = docopt(__doc__, version=constants.VERSION)
cli(arguments)
except Exception as e:
print util.red("Error:"),
print e
exit()

Expand Down
2 changes: 1 addition & 1 deletion snapchat_fs/snapchatfs.py
Expand Up @@ -166,4 +166,4 @@ def upload_sfs_file(session, filename):
print util.green('Uploading file ') + (basename)
sfs_id = session.generate_sfs_id(basename, data)
session.upload_image(data, sfs_id)
session.send_image_to(username, sfs_id)
session.send_image_to(session.username, sfs_id)

0 comments on commit e4bcd2d

Please sign in to comment.