Skip to content

Commit

Permalink
Remove investigative print statements
Browse files Browse the repository at this point in the history
  • Loading branch information
bhilbert4 committed Jun 12, 2021
1 parent 5c52c18 commit c5c3242
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions jwql/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,14 +132,12 @@ def get_config():

# Make sure the file exists
if not os.path.isfile(config_file_location):
tmpdir = os.path.dirname(config_file_location)
raise FileNotFoundError('CONFG FILE LOCATION IS: {}\n'
'FILES IN THIS LOCATION: {}\n'
'The JWQL package requires a configuration file (config.json) '
base_config = os.path.basename(config_file_location)
raise FileNotFoundError('The JWQL package requires a configuration file ({}) '
'to be placed within the main jwql directory. '
'This file is missing. Please read the relevant wiki page '
'(https://github.com/spacetelescope/jwql/wiki/'
'Config-file) for more information.'.format(config_file_location, sorted(os.listdir(tmpdir))))
'Config-file) for more information.'.format(base_config))

with open(config_file_location, 'r') as config_file_object:
try:
Expand Down

0 comments on commit c5c3242

Please sign in to comment.