fix version check
This commit is contained in:
parent
01dcd164ec
commit
552300a971
|
@ -225,7 +225,7 @@ if __name__ == "__main__":
|
||||||
# see https://github.com/gammu/gammu/issues/460
|
# see https://github.com/gammu/gammu/issues/460
|
||||||
try:
|
try:
|
||||||
gammu_version = get_gammu_version()
|
gammu_version = get_gammu_version()
|
||||||
if gammu_version[0] >= 1 and gammu_version[1] >= 42:
|
if gammu_version[0] > 1 or (gammu_version[0] == 1 and gammu_version[1] >= 42):
|
||||||
delete = True
|
delete = True
|
||||||
else:
|
else:
|
||||||
logger.warning("Cannot delete SMS. You need gammu >= 1.42.0.")
|
logger.warning("Cannot delete SMS. You need gammu >= 1.42.0.")
|
||||||
|
|
Loading…
Reference in New Issue