refactor: swap (KeyError, IndexError) for LookupError.

This commit is contained in:
UpstreamData
2024-01-11 15:20:33 -07:00
parent 60f3687d02
commit b0337e8417
5 changed files with 37 additions and 37 deletions

View File

@@ -216,7 +216,7 @@ class ePIC(BaseMiner):
hashrate += hb["Hashrate"][0] / ideal
return round(float(float(hashrate / 1000000)), 2)
except (IndexError, KeyError, ValueError, TypeError) as e:
except (LookupError, ValueError, TypeError) as e:
logger.error(e)
pass