Commits

Robert Filipovich committed 8b02d4e

Modified gpsPostData.py

  • Participants
  • Parent commits 972cd26

Comments (0)

Files changed (1)

gpsdPiTracker/gpsPostData.py

 #!/usr/bin/python -tt
 
 import urllib
-import urllib2
+import urllib2, time
 import wddx
 from gpsLogger import gpslog
 
 			print response
 			#test = wddx.loads(response)
 			#print test[0]
-		except urllib2.URLError as err:
+		except Exception as err:
 			pass
-			gpslog('ERROR', 'GPS POST ERROR: ' + str(err.reason))
+			print 'GPS POST ERROR: ' + str(err.reason)
+			gpslog('ERROR', 'GPS POST ERROR: ' + str(err.reason))
+			time.sleep(1)