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
|
||||
try:
|
||||
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
|
||||
else:
|
||||
logger.warning("Cannot delete SMS. You need gammu >= 1.42.0.")
|
||||
|
|
Loading…
Reference in New Issue