Browse Source

HOT-FIX: NoneType exception em LexML

pull/3623/head
Edward Ribeiro 2 years ago
parent
commit
abc05a566f
  1. 1
      sapl/lexml/OAIServer.py

1
sapl/lexml/OAIServer.py

@ -237,6 +237,7 @@ class OAIServer:
return None return None
def oai_query(self, offset=0, batch_size=10, from_=None, until=None, identifier=None): def oai_query(self, offset=0, batch_size=10, from_=None, until=None, identifier=None):
if from_:
from_ = timezone.make_aware(from_) # convert from naive to timezone aware datetime from_ = timezone.make_aware(from_) # convert from naive to timezone aware datetime
esfera = self.get_esfera_federacao() esfera = self.get_esfera_federacao()
offset = 0 if offset < 0 else offset offset = 0 if offset < 0 else offset

Loading…
Cancel
Save