mirror of
https://git.ianrenton.com/ian/spothole.git
synced 2026-09-20 14:27:42 +00:00
Logging tidy-up, IDE inspection fixes
This commit is contained in:
@@ -31,6 +31,6 @@ class CQZoneData(LocalFileStaticDataProvider):
|
||||
DATA_STORE.cq_zone_data = cq_zone_data
|
||||
return True
|
||||
|
||||
except Exception as e:
|
||||
logging.error("Exception when loading CQ zone data.", e, exc_info=True)
|
||||
except Exception:
|
||||
logging.exception("Exception when loading CQ zone data.")
|
||||
return False
|
||||
|
||||
@@ -31,6 +31,6 @@ class ITUZoneData(LocalFileStaticDataProvider):
|
||||
DATA_STORE.itu_zone_data = itu_zone_data
|
||||
return True
|
||||
|
||||
except Exception as e:
|
||||
logging.error("Exception when loading ITU zone data.", e, exc_info=True)
|
||||
except Exception:
|
||||
logging.exception("Exception when loading ITU zone data.")
|
||||
return False
|
||||
|
||||
@@ -41,8 +41,8 @@ class K0SWE(FileDownloadStaticDataProvider):
|
||||
|
||||
return True
|
||||
|
||||
except Exception as e:
|
||||
logging.error("Exception when loading K0SWE dxcc.json.", e, exc_info=True)
|
||||
except Exception:
|
||||
logging.exception("Exception when loading K0SWE dxcc.json.")
|
||||
return False
|
||||
|
||||
|
||||
|
||||
@@ -25,9 +25,9 @@ class LocalFileStaticDataProvider(StaticDataProvider):
|
||||
else:
|
||||
self.status = "Error"
|
||||
logging.error("Failed to load data for " + self.name)
|
||||
except Exception as e:
|
||||
except Exception:
|
||||
self.status = "Error"
|
||||
logging.error("Exception in local file Static Data Provider (" + self.name + ")", e, exc_info=True)
|
||||
logging.exception("Exception in local file Static Data Provider (" + self.name + ")")
|
||||
|
||||
def stop(self):
|
||||
self._stop = True
|
||||
|
||||
Reference in New Issue
Block a user