Changeset 1113 for pykota/trunk/bin/pykotme
- Timestamp:
- 07/29/03 22:55:17 (21 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/bin/pykotme
r1099 r1113 23 23 # 24 24 # $Log$ 25 # Revision 1.3 2003/07/29 20:55:17 jalet 26 # 1.14 is out ! 27 # 25 28 # Revision 1.2 2003/07/25 10:41:29 jalet 26 29 # Better documentation. … … 150 153 151 154 if __name__ == "__main__" : 155 retcode = 0 152 156 try : 153 157 defaults = { \ … … 173 177 sender.display_version_and_quit() 174 178 else : 175 sys.exit(sender.main(args, options))179 retcode = sender.main(args, options) 176 180 except (PyKotaToolError, PyKotaConfigError, PyKotaStorageError), msg : 177 181 sys.stderr.write("%s\n" % msg) 178 182 sys.stderr.flush() 179 sys.exit(-1)183 retcode = -1 180 184 185 try : 186 sender.storage.close() 187 except (TypeError, NameError, AttributeError) : 188 pass 189 190 sys.exit(retcode)