Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/python-nbxmpp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Hörist <philipp@hoerist.com>2023-09-26 22:05:11 +0300
committerPhilipp Hörist <philipp@hoerist.com>2023-09-26 22:05:11 +0300
commite2f098a63fd7927670e87c4a7e022fa25cb6880e (patch)
tree3764baa34cb7f63e27898ed7774596d0f45976f1
parentef32805a2c77b99440c49e7a352311d7eb2cb53a (diff)
cq: Fix inconsistent return statement
-rw-r--r--nbxmpp/modules/date_and_time.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/nbxmpp/modules/date_and_time.py b/nbxmpp/modules/date_and_time.py
index 4815d28..d024bdd 100644
--- a/nbxmpp/modules/date_and_time.py
+++ b/nbxmpp/modules/date_and_time.py
@@ -147,7 +147,7 @@ def parse_datetime(
match = PATTERN_DATETIME.match(timestring)
if match is None:
- return
+ return None
timestring = ''.join(match.groups(''))
strformat = '%Y-%m-%d%H:%M:%S%z'