kopia lustrzana https://github.com/collective/icalendar
rodzic
6306a3be67
commit
5da255dc16
|
@ -495,7 +495,7 @@ Description:
|
||||||
raise TypeError(
|
raise TypeError(
|
||||||
"REFRESH-INTERVAL must be a positive timedelta or None (to delete it)."
|
"REFRESH-INTERVAL must be a positive timedelta or None (to delete it)."
|
||||||
)
|
)
|
||||||
if value is not None and value.total_seconds() < 0:
|
if value is not None and value.total_seconds() <= 0:
|
||||||
raise ValueError("REFRESH-INTERVAL must be a positive timedelta.")
|
raise ValueError("REFRESH-INTERVAL must be a positive timedelta.")
|
||||||
del self.refresh_interval
|
del self.refresh_interval
|
||||||
if value is not None:
|
if value is not None:
|
||||||
|
|
Ładowanie…
Reference in New Issue