mirror of
https://github.com/Syncplay/syncplay
synced 2025-02-17 19:36:51 +00:00
fix warning message (#297)
/usr/lib/syncplay/syncplay/ui/GuiConfiguration.py:323: SyntaxWarning: "is not" with a literal. Did you mean "!="?
This commit is contained in:
parent
23ca271ff9
commit
ff5b669683
@ -320,7 +320,7 @@ class ConfigDialog(QtWidgets.QDialog):
|
||||
try:
|
||||
self.lastCheckedForUpdates = settings.value("lastCheckedQt", None)
|
||||
if self.lastCheckedForUpdates:
|
||||
if self.config["lastCheckedForUpdates"] is not None and self.config["lastCheckedForUpdates"] != "":
|
||||
if self.config["lastCheckedForUpdates"] != None and self.config["lastCheckedForUpdates"] != "":
|
||||
if self.lastCheckedForUpdates.toPython() > datetime.strptime(self.config["lastCheckedForUpdates"], "%Y-%m-%d %H:%M:%S.%f"):
|
||||
self.config["lastCheckedForUpdates"] = self.lastCheckedForUpdates.toString("yyyy-MM-d HH:mm:ss.z")
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user