Skip to content

Commit 0a9b5c5

Browse files
merge with master
1 parent 20ef694 commit 0a9b5c5

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

geonode/security/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ def attributes_sats_refresh(request):
348348
layer.srid = "EPSG:4326"
349349
layer.set_ll_bbox_polygon([ll_bbox[0], ll_bbox[2], ll_bbox[1], ll_bbox[3]])
350350
layer.save()
351-
except Exception as e:
351+
except Exception:
352352
logger.exception("Exception occurred while refreshing attributes/stats for resource uuid=%s", uuid)
353353
return HttpResponse(
354354
json.dumps(

geonode/upload/handlers/xml/handler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def is_valid(files, user=None, **kwargs):
9898
try:
9999
with open(files.get("base_file")) as _xml:
100100
dlxml.fromstring(_xml.read().encode())
101-
except Exception as err:
101+
except Exception:
102102
logger.warning("Invalid XML upload validation error", exc_info=True)
103103
raise InvalidXmlException("Uploaded document is not XML or is invalid.")
104104
return True

0 commit comments

Comments
 (0)