Handle Almanac download error correctly

pull/526/head
Mark Jessop 2021-06-21 20:37:08 +09:30
rodzic 7df232c62f
commit 0446a6b374
2 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -17,7 +17,7 @@ except ImportError:
# MINOR - New sonde type support, other fairly big changes that may result in telemetry or config file incompatability issus.
# PATCH - Small changes, or minor feature additions.
__version__ = "1.5.4-beta2"
__version__ = "1.5.4-beta3"
# Global Variables

Wyświetl plik

@ -78,7 +78,7 @@ def get_almanac(destination="almanac.txt", timeout=20):
logging.error("GPS Grabber - Downloaded file is not a GPS almanac.")
return None
except Exception as e:
logging.error("GPS Grabber - Failed to download almanac data - " % str(e))
logging.error(f"GPS Grabber - Failed to download almanac data - {str(e)}")
return None