Add some more error checking in device_query
Add some more error checking in device_query

Deepomatic/DIGITS,TimZaman/DIGITS,ethantang95/DIGITS-GAN,bygreencn/DIGITS,gheinrich/DIGITS-GAN,dongjoon-hyun/DIGITS,Deepomatic/DIGITS,TimZaman/DIGITS,dongjoon-hyun/DIGITS,dongjoon-hyun/DIGITS,bygreencn/DIGITS,ethantang95/DIGITS-GAN,ethantang95/DIGITS-GAN,TimZaman/DIGITS,TimZaman/DIGITS,bygreencn/DIGITS,ethantang95/DIGITS,gheinrich/DIGITS-GAN,Deepomatic/DIGITS,gheinrich/DIGITS-GAN,gheinrich/DIGITS-GAN,dongjoon-hyun/DIGITS,bygreencn/DIGITS,ethantang95/DIGITS,Deepomatic/DIGITS,ethantang95/DIGITS,ethantang95/DIGITS-GAN,ethantang95/DIGITS