<s> '''<STR_LIT>''' <EOL> from miner . web import dstk <EOL> def ip_to_lat_lon ( ip ) : <EOL> if ip is None : <EOL> return { } <EOL> try : <EOL> resp = dstk . ip2coordinates ( ip ) <EOL> except Exception : <EOL> return None <EOL> if not resp . get ( ip ) : <EOL> return { } <EOL> return resp [ ip ] </s>
