diff --git a/gracedb/api/v1/events/views.py b/gracedb/api/v1/events/views.py
index add6512f1c44639731db7f860981f38c5e218acf..ef52e5d03f503e30a7292bb7764c15f14eea1361 100644
--- a/gracedb/api/v1/events/views.py
+++ b/gracedb/api/v1/events/views.py
@@ -1731,7 +1731,7 @@ class VOEventList(InheritPermissionsAPIView):
             if not os.path.exists(skymap_file_path):
                 error = True
                 msg = "Skymap file {fname} does not exist".format(
-                    fname=skymap_filenamei)
+                    fname=skymap_filename)
         elif time_coinc_far or space_coinc_far:
             if not ext_gcn:
                 error = True