Skip to content

Commit

Permalink
fix exception missing in older Python
Browse files Browse the repository at this point in the history
  • Loading branch information
weaverba137 committed Aug 9, 2017
1 parent 03d819d commit d978f62
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hpsspy/scan.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ def validate_configuration(config):
with open(config) as fp:
try:
json_data = json.load(fp)
except json.JSONDecodeError:
# except json.JSONDecodeError:
except ValueError:
logger.critical("%s is not valid JSON.", config)
return 1
except FileNotFoundError:
Expand Down

0 comments on commit d978f62

Please sign in to comment.