mirror of
https://github.com/OSURoboticsClub/Rover_2017_2018.git
synced 2025-11-08 18:21:15 +00:00
Fixed git reset scripts
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
cp -r software/ros_packages/ground_station/src/Maps ~/Maps_Backup
|
||||
cp -r software/ros_packages/ground_station/src/Resources/Maps ~/Maps_Backup
|
||||
git reset --hard
|
||||
git clean -fdx
|
||||
git pull
|
||||
cp -r ~/Maps_Backup software/ros_packages/ground_station/src/Maps
|
||||
cp -r ~/Maps_Backup software/ros_packages/ground_station/src/Resources/Maps
|
||||
|
||||
@@ -139,7 +139,13 @@ class GMapsStitcher(object):
|
||||
# make the url
|
||||
url = urlbase % specs
|
||||
url = signing.sign_url(url, _KEYS[1])
|
||||
result = urllib2.urlopen(urllib2.Request(url)).read()
|
||||
try:
|
||||
result = urllib2.urlopen(urllib2.Request(url)).read()
|
||||
except urllib2.HTTPError, e:
|
||||
print "Error accessing url for reason:", e
|
||||
print url
|
||||
return
|
||||
|
||||
tile_object = PIL.Image.open(BytesIO(result))
|
||||
if not os.path.exists('Resources/Maps'):
|
||||
os.mkdir('Resources/Maps')
|
||||
|
||||
Reference in New Issue
Block a user