Advertisement
Guest User

Untitled

a guest
Jun 1st, 2016
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.35 KB | None | 0 0
  1. import pyfilemail
  2.  
  3. # Login to a Filemail account
  4. # user = pyfilemail.User(username='simon.pipeline@gmail.com',
  5. # password='pipeline2014')
  6.  
  7. user = pyfilemail.User('anonymous')
  8.  
  9.  
  10. # Setup a transfer
  11. transfer = pyfilemail.Transfer(user,
  12. to='bjork.simon@gmail.com',
  13. subject='My BIG file no email can handle',
  14. message='You will not belive the speed of this download!',
  15. notify=True,
  16. confirmation=True,
  17. days=7,
  18. password='poop')
  19.  
  20.  
  21. transfer.add_files('F:/vfx305-class09.mp4')
  22.  
  23. transfer.send(auto_complete=True)
  24.  
  25. user.logout()
  26.  
  27.  
  28.  
  29.  
  30.  
  31. Traceback (most recent call last):
  32. File "G:\python\python_tmp.py", line 146, in <module>
  33. password='poop')
  34. File "D:/poop/Lib/site-packages\pyfilemail\transfer.py", line 84, in __init__
  35. self._initialize()
  36. File "D:/poop/Lib/site-packages\pyfilemail\transfer.py", line 108, in _initialize
  37. hellraiser(res)
  38. File "D:/poop/Lib/site-packages\pyfilemail\errors.py", line 61, in hellraiser
  39. errormessage = response_dict['errormessage']
  40. KeyError: 'errormessage'
  41. [Finished in 4.2s with exit code 1]
  42. [shell_cmd: python -u "G:\python\python_tmp.py"]
  43. [dir: G:\python]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement