|
@@ -172,17 +172,8 @@ if __name__ == '__main__':
|
|
sys.exit(status)
|
|
sys.exit(status)
|
|
|
|
|
|
db = pwman.data.factory.create(dbtype, dbver)
|
|
db = pwman.data.factory.create(dbtype, dbver)
|
|
- if dbver >= 0.4:
|
|
|
|
- cli = PwmanCliNew(db, xselpath, CLICallback)
|
|
|
|
- elif dbver < 0.4:
|
|
|
|
- print("\n*** WARNNING: You are using the old database format"
|
|
|
|
- " which is insecure."
|
|
|
|
- " Please upgrade to the new database "
|
|
|
|
- " format. Do note: support for this DB format will be dropped in"
|
|
|
|
- " v0.5. This database format is on hold. No bugs are fixead"
|
|
|
|
- " Check the help (pwman3 -h) or look at the manpage which"
|
|
|
|
- " explains how to proceed. ***")
|
|
|
|
- sys.exit(0)
|
|
|
|
|
|
+ cli = PwmanCliNew(db, xselpath, CLICallback)
|
|
|
|
+
|
|
try:
|
|
try:
|
|
cli.cmdloop()
|
|
cli.cmdloop()
|
|
except KeyboardInterrupt, e:
|
|
except KeyboardInterrupt, e:
|