Skip to content

Commit

Permalink
get-changes: error out if no start sequence can be found
Browse files Browse the repository at this point in the history
  • Loading branch information
lonvia committed Aug 29, 2017
1 parent e88401d commit d990a2c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tools/pyosmium-get-changes
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,9 @@ if __name__ == '__main__':
svr = rserv.ReplicationServer(url)

startseq = options.start.get_sequence(svr)
if startseq is None:
log.error("Cannot read state file from server. Is the URL correct?")
exit(1)

if options.outfile is None:
write_end_sequence(options.seq_file, startseq)
Expand Down

0 comments on commit d990a2c

Please sign in to comment.