mirror of
https://github.com/aljazceru/plugins.git
synced 2025-12-19 14:14:20 +01:00
backup: nits assert without parentheses
This commit is contained in:
committed by
Christian Decker
parent
70c1f0a4ee
commit
6ab4d35003
@@ -28,6 +28,6 @@ def get_backend(destination, create=False, require_init=False):
|
||||
initialized = backend.initialize()
|
||||
if require_init and not initialized:
|
||||
kill("Could not initialize the backup {}, please use 'backup-cli' to initialize the backup first.".format(destination))
|
||||
assert(backend.version is not None)
|
||||
assert(backend.prev_version is not None)
|
||||
return backend
|
||||
assert backend.version is not None
|
||||
assert backend.prev_version is not None
|
||||
return backend
|
||||
|
||||
Reference in New Issue
Block a user