milesrichardson / ParsePy

A relatively up-to-date fork of ParsePy, the Python wrapper for the Parse.com API. Originally maintained by @dgrtwo
MIT License
515 stars 184 forks source link

Weird issue when using "with SessionToken" #142

Open konoufo opened 8 years ago

konoufo commented 8 years ago

Hello guys ! This line raises a KeyError: del ACCESS_KEYS['session_token'] It's in parse_rest/connection.py in exit method of class SessionToken. It's executed when leaving this [familiar] with block in my code: with SessionToken(token): user = User.current_user()

It doesn't make much sense given what's happening in enter. If anybody has an idea, it would be very much appreciated.