Skip to content

Commit

Permalink
[MINOR][HOTFIX] Fix python code style issue
Browse files Browse the repository at this point in the history
## What changes were proposed in this pull request?

Travis complains "E722 do not use bare except" in python-client style check. Minor changes to fix it.

Author: jerryshao <[email protected]>

Closes apache#60 from jerryshao/python-style-fix.
  • Loading branch information
jerryshao committed Oct 26, 2017
1 parent bef5b4f commit 20cbdd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python-api/src/main/python/livy/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ def stop(self, shutdown_context):
headers = {'X-Requested-By': 'livy'}
self._conn.send_request("DELETE", session_uri,
headers=headers)
except:
except Exception:
raise Exception(traceback.format_exc())
self._stopped = True

Expand Down

0 comments on commit 20cbdd5

Please sign in to comment.