fix 2gis script for better error handling