1
0
Fork 0
flightgear/scripts
Florent Rougon c27ae92c73 terrasync.py: improve error handling
- New generic exception class TerraSyncPyException.

- Add subclass NetworkError of TerraSyncPyException.

- Raise a NetworkError exception when the HTTP return code is not 200.

- hash_of_file() does not silently ignore errors anymore; exceptions
  should be dealt with wherever appropriate by the callers.

  Whenever hash_of_file() returns, its return value is now the SHA-1
  hash of the specified file. This is less error-prone IMHO than
  returning None. Otherwise, calling code could erroneously conclude
  that there is a matching hash when the file to check is actually
  missing. For a concrete example, see the 'dirIndexHash' parameter of
  TerraSync.updateDirectory(), which so far is used precisely with the
  value None to express that "we are just starting the recursion and
  have no hash from the server to compare to".
2018-02-03 11:22:56 +01:00
..
atis Update ATIS voice generation scripts 2012-10-13 15:45:15 +02:00
completion Mark enhanced lighting options and --adf as deprecated 2017-06-04 16:56:17 +02:00
debug Goodbye automake. 2011-11-01 11:15:53 +00:00
example Goodbye automake. 2011-11-01 11:15:53 +00:00
java/FGClient #718: java client example not compiling 2012-03-27 21:06:29 +02:00
perl Goodbye automake. 2011-11-01 11:15:53 +00:00
python terrasync.py: improve error handling 2018-02-03 11:22:56 +01:00
syntax gedit syntaxhighlight/snippet support for Nasal. 2013-11-07 14:30:03 +01:00
tools Fix syntax for IF DEFINED conditionals 2010-11-14 23:32:37 +00:00
CMakeLists.txt Add CMake Linux install directives for the icons and the .desktop file 2017-05-24 22:47:01 +02:00