Added proper error handling in maps.py

2 jobs for master in 22 seconds (queued for 2 seconds)