Skip to content

Commit

Permalink
Fixed flake8 errors (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
andamian committed Oct 26, 2018
1 parent 6de4d26 commit de4d3b1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions caom2pipe/caom2pipe/execute_composable.py
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ def _cadc_data_get_client(self):
if not os.path.exists(fqn):
raise mc.CadcException(
'{} does not exist.'.format(fqn))
except Exception as e:
except Exception:
raise mc.CadcException(
'Did not retrieve {}'.format(fqn))

Expand Down Expand Up @@ -508,9 +508,9 @@ def repo_cmd_get_client(caom_repo_client, collection, observation_id):
try:
observation = caom_repo_client.read(collection, observation_id)
return observation
except exceptions.NotFoundException as e:
except exceptions.NotFoundException:
return None
except Exception as e2:
except Exception:
raise mc.CadcException(
'Could not retrieve an observation record for {}.'.format(
observation_id))
Expand Down
2 changes: 1 addition & 1 deletion caom2utils/caom2utils/fits2caom2.py
Original file line number Diff line number Diff line change
Expand Up @@ -3156,7 +3156,7 @@ def _set_by_type(header, keyword, value):
except ValueError:
pass

if float_value and not value.isdecimal() or re.match('0\.0*', value):
if float_value and not value.isdecimal() or re.match(r'0\.0*', value):
header.set(keyword, float_value)
elif int_value:
header.set(keyword, int_value)
Expand Down

0 comments on commit de4d3b1

Please sign in to comment.