Skip to content

Commit

Permalink
Remove try statement
Browse files Browse the repository at this point in the history
  • Loading branch information
bhilbert4 committed Jul 10, 2024
1 parent d60e7e8 commit 8b171fb
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions jwql/website/apps/jwql/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -387,14 +387,12 @@ def _search_is_fileroot(self, search):
bool
Is the search term formatted like a fileroot?
"""

try:
parsed = filename_parser(search)
if 'instrument' in parsed:
self.fileroot_dict = filename_parser(search)
return True
else:
return False
parsed = filename_parser(search)
if 'instrument' in parsed:
self.fileroot_dict = filename_parser(search)
return True
else:
return False

def redirect_to_files(self):
"""Determine where to redirect the web app based on user input.
Expand Down

0 comments on commit 8b171fb

Please sign in to comment.