Skip to content

Commit

Permalink
find correct exception
Browse files Browse the repository at this point in the history
  • Loading branch information
weaverba137 committed Aug 10, 2017
1 parent 3c0a184 commit 1c0b636
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion hpsspy/scan.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def validate_configuration(config):
logger.critical("%s is not valid JSON.", config)
return 1
# except FileNotFoundError:
except OSError:
except IOError:
logger.critical("%s does not exist. Try again.", config)
return 1
if 'config' in json_data:
Expand Down
2 changes: 1 addition & 1 deletion hpsspy/test/test_scan.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def test_files_to_hpss(self):
desi_map = {"dc2/batch/.*$": "dc2/batch.tar",
"dc2/([^/]+\\.txt)$": "dc2/\\1",
"dc2/templates/[^/]+$": "dc2/templates/templates_files.tar"
}
}
for key in hpss_map['dc2']:
self.assertIn(key[0].pattern, desi_map)
self.assertEqual(key[1], desi_map[key[0].pattern])
Expand Down

0 comments on commit 1c0b636

Please sign in to comment.