Index: django/contrib/gis/utils/ogrinspect.py
===================================================================
--- django/contrib/gis/utils/ogrinspect.py	(revision 6941)
+++ django/contrib/gis/utils/ogrinspect.py	(working copy)
@@ -110,14 +110,18 @@
     
     # Setting up the SRID parameter string.
     if srid is None:
-        srid = layer.srs.srid
-        if srid is None:
+        try:
+            srid = layer.srs.srid
+        except AttributeError:
             srid_str = 'srid=-1'
-        elif srid == 4326:
-            # WGS84 is the default.
-            srid_str = ''
         else:
-            srid_str = 'srid=%s' % srid
+            if srid is None:
+                srid_str = 'srid=-1'
+            elif srid == 4326:
+                # WGS84 is the default.
+                srid_str = ''
+            else:
+                srid_str = 'srid=%s' % srid
     else:
         srid_str = 'srid=%s' % srid
 
