Skip to content

Commit 0a468da

Browse files
Merge pull request #3 from PogoDigitalism/pre_stable_1
Pre stable 1
2 parents a66a57b + 51338ce commit 0a468da

File tree

5 files changed

+13
-11
lines changed

5 files changed

+13
-11
lines changed

.gitignore

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
src/__pycache__
2-
src/venv
1+
__pycache__/
2+
venv/
33
src/data/storage/rosec.json
4-
src/log_comms/logs.txt
5-
src/log_comms/exception_logs.txt
4+
/log_comms/logs.txt
5+
/log_comms/exception_logs.txt

TradeNotifier.exe

8.23 MB
Binary file not shown.

src/handler.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ def _validate_cookie(self):
5454
#recursion to check for a valid cookie again.
5555
if saved:
5656
return self._validate_cookie()
57+
else:
58+
sys.exit()
5759
else:
5860
Log.info("Validated cookie")
5961

@@ -89,4 +91,4 @@ async def check_inbounds(self):
8991

9092
async def run():
9193
handler = Handler()
92-
await handler.check_inbounds()
94+
await handler.check_inbounds()

src/log_comms/log.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def wrap_http(func: typing.Callable, request_struct , success_codes: list[int],
117117
return resp
118118
except error.HTTPError as resp:
119119
if resp.code not in success_codes:
120-
Log.critical(f"HTTPError for {request_struct.get_method()} {resp.url}: [{resp.code}] | {resp.read()}")
120+
Log.error(f"HTTPError for {request_struct.get_method()} {resp.url}: [{resp.code}] | {resp.read()}")
121121
else:
122122
Log.info(f"Opened URL: {request_struct.get_method()} {resp.url} with code {resp.code}")
123123
raise resp
@@ -154,4 +154,4 @@ def wrapper(*args, **kwargs):
154154
if asyncio.iscoroutine(func):
155155
return awrapper
156156
else:
157-
return wrapper
157+
return wrapper

src/win_comms/toast_manager.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -164,11 +164,11 @@ def _window_procedure(self, hwnd, msg, wparam, lparam):
164164
return self.user32.DefWindowProcW(hwnd, msg, wparam, ctypes.c_int64(lparam)) # message processing satisfyer
165165

166166
def _create_window(self):
167-
self.wnd_class = WNDCLASSW()
168-
self.wnd_class.lpfnWndProc = WNDPROC(self._window_procedure) # set
169-
self.wnd_class.lpszClassName = 'RobloxRedirect'
167+
self.WND_struct = WNDCLASSW()
168+
self.WND_struct.lpfnWndProc = WNDPROC(self._window_procedure) # set
169+
self.WND_struct.lpszClassName = 'RobloxRedirect'
170170

171-
self.user32.RegisterClassW(ctypes.byref(self.wnd_class))
171+
self.user32.RegisterClassW(ctypes.byref(self.WND_struct))
172172

173173
self.hwnd = self.user32.CreateWindowExW(
174174
0,

0 commit comments

Comments
 (0)