Skip to content

Commit

Permalink
Merge pull request #116 from wtgee/develop
Browse files Browse the repository at this point in the history
Capture missing solve-field error
  • Loading branch information
wtgee authored Nov 17, 2017
2 parents d3164f1 + c886b32 commit 2d4e906
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions pocs/utils/images.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,9 @@ def get_solve_field(fname, replace=True, remove_extras=True, **kwargs):
proc.kill()
raise error.Timeout("Timeout while solving")
else:
if proc.returncode == 3:
raise error.SolveError('solve-field not found: {}'.format(output))

if verbose:
print("Output: {}", output)
print("Errors: {}", errs)
Expand Down
2 changes: 1 addition & 1 deletion scripts/solve_field.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ then
echo 2>&1 ""
echo 2>&1 "Please install astrometry into ${PANDIR}/astrometry to enable $0"
echo 2>&1 ""
exit 1
exit 3 # Command not found
fi

if [[ $# == 1 ]]; then
Expand Down

0 comments on commit 2d4e906

Please sign in to comment.