Remove unused variable
authorMagnus Hagander <magnus@hagander.net>
Tue, 27 Oct 2020 09:34:45 +0000 (10:34 +0100)
committerMagnus Hagander <magnus@hagander.net>
Wed, 28 Oct 2020 15:39:27 +0000 (16:39 +0100)
pgweb/util/sitestruct.py

index 9a04b6b976befef44ed42bd16c2f54e8ccd4a1d1..21e5214f60c84806b4a158e2cfdb8e43041704dd 100644 (file)
@@ -18,7 +18,7 @@ def get_all_pages_struct(method='get_struct'):
                     # If the app has a specific appconfig, we still go directly for struct,so remove it
                     app = app[:app.index('.apps.')]
                 m = __import__(app + ".struct", {}, {}, method)
-            except Exception as e:
+            except Exception:
                 # Failed to import - probably module didnd't exist
                 continue