Skip to content

Commit

Permalink
FIX: XNATException doesn't exist in pyxnat
Browse files Browse the repository at this point in the history
  • Loading branch information
jhuguetn committed Apr 10, 2019
1 parent 46971f6 commit 27b7d2c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions pyxnat/core/interfaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -555,11 +555,7 @@ def close_jsession(self):
'''
uri = '/data/JSESSION'
response = self.delete(uri)

if response.status_code != requests.codes.ok:
raise XNATException('HTTP response: #%s%s%s' \
% (response.status_code, os.linesep, response.content))

response.raise_for_status()
self._jsession = None

def __exit__(self, type, value, traceback):
Expand Down

0 comments on commit 27b7d2c

Please sign in to comment.