X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/c504ec523cd815d920528bcdc9b915a83f2fd64a..30ead191463103fb4faceb52fc6fb4867bd41e18:/utils/osm_file_date.py?ds=sidebyside diff --git a/utils/osm_file_date.py b/utils/osm_file_date.py index 6418efb0..0443e6ac 100755 --- a/utils/osm_file_date.py +++ b/utils/osm_file_date.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python3 import osmium import sys @@ -28,6 +28,7 @@ if __name__ == '__main__': h.apply_file(sys.argv[1]) - print(h.filedate) - + if h.filedate is None: + exit(5) + print(h.filedate)