Skip to content

Commit

Permalink
Move exceptions constant to class.
Browse files Browse the repository at this point in the history
  • Loading branch information
YoRyan committed Dec 9, 2018
1 parent 66b6175 commit 11ee9b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nuxhash/daemon.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
BENCHMARK_SECS = 60
DONATE_PROB = 0.005
DONATE_ADDRESS = '3Qe7nT9hBSVoXr8rM2TG6pq82AmLVKHy23'
NH_EXCEPTIONS = (ConnectionError, IOError, OSError, nicehash.NicehashException)


def main():
Expand Down Expand Up @@ -222,6 +221,7 @@ class MiningSession(object):

PROFIT_PRIORITY = 1
STOP_PRIORITY = 0
NH_EXCEPTIONS = (ConnectionError, IOError, OSError, nicehash.NicehashException)

def __init__(self, miners, settings, benchmarks, devices):
self._miners = miners
Expand Down
2 changes: 1 addition & 1 deletion nuxhash/gui/mining.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
NVIDIA_COLOR = (66, 244, 69)
DONATE_PROB = 0.005
DONATE_ADDRESS = '3Qe7nT9hBSVoXr8rM2TG6pq82AmLVKHy23'
NH_EXCEPTIONS = (ConnectionError, IOError, OSError, nicehash.NicehashException)


class MiningScreen(wx.Panel):
Expand Down Expand Up @@ -301,6 +300,7 @@ class MiningThread(threading.Thread):
PROFIT_PRIORITY = 1
STATUS_PRIORITY = 2
STOP_PRIORITY = 0
NH_EXCEPTIONS = (ConnectionError, IOError, OSError, nicehash.NicehashException)

def __init__(self, devices=[], window=None,
settings=DEFAULT_SETTINGS, benchmarks=EMPTY_BENCHMARKS):
Expand Down

0 comments on commit 11ee9b2

Please sign in to comment.