Skip to content

Commit

Permalink
Fix code be compatible with python2.7/3.3/3.4
Browse files Browse the repository at this point in the history
  • Loading branch information
simozhan committed Nov 25, 2016
1 parent 6560717 commit 92f4c0f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pdc_client/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,11 @@ def load_plugins(self):
args = sys.argv[1:]
try:
idx_s = args.index('-s')
except ValueError, IndexError:
except (ValueError, IndexError):
pass
try:
idx_server = args.index('--server')
except ValueError, IndexError:
except (ValueError, IndexError):
pass
try:
server = args[max(idx_s, idx_server) + 1]
Expand Down

0 comments on commit 92f4c0f

Please sign in to comment.