profile_blob = self.get_profile_blob()
#self.check_profile_blob(profile_blob)
- # Get location
- location = self.get_remote_location()
- if location:
- location = location.country
-
# Handle the profile.
with self.db.transaction():
try:
- self.fireinfo.handle_profile(public_id, profile_blob, location=location)
+ self.fireinfo.handle_profile(public_id, profile_blob,
+ country_code=self.current_country_code)
except fireinfo.ProfileParserError as e:
raise tornado.web.HTTPError(400, "Could not parse profile: %s" % e)