[GH-ISSUE #379] Error - 'NoneType' object has no attribute 'strip' #784

Closed
opened 2026-03-13 22:37:43 +03:00 by kerem · 1 comment
Owner

Originally created by @o-grd on GitHub (Sep 15, 2021).
Original GitHub issue: https://github.com/alexal1/Insomniac/issues/379

-------- START: 2021-09-15 11:32:18.667635 --------
[09/15 11:32:20] Open Instagram app
[09/15 11:32:20] Error - 'NoneType' object has no attribute 'strip'
Traceback (most recent call last):
File "C:\Users\X\AppData\Local\Programs\Python\Python39\lib\site-packages\insomniac\session.py", line 313, in run
self.prepare_session_state(args, device_wrapper, app_version, save_profile_info=True)
File "C:\Users\X\AppData\Local\Programs\Python\Python39\lib\site-packages\insomniac\session.py", line 263, in prepare_session_state
hardban_indicator.detect_webview(device)
File "C:\Users\X\AppData\Local\Programs\Python\Python39\lib\site-packages\insomniac\hardban_indicator.py", line 19, in detect_webview
resumed_activity_output = execute_command("adb" + ("" if device_id is None else " -s " + device_id) +
File "C:\Users\X\AppData\Local\Programs\Python\Python39\lib\site-packages\insomniac\utils.py", line 177, in execute_command
err = cmd_res.stderr.strip()
AttributeError: 'NoneType' object has no attribute 'strip'

Error - 'NoneType' object has no attribute 'strip'
Traceback (most recent call last):
File "C:\Users\X\AppData\Local\Programs\Python\Python39\lib\site-packages\insomniac\session.py", line 313, in run
self.prepare_session_state(args, device_wrapper, app_version, save_profile_info=True)
File "C:\Users\X\AppData\Local\Programs\Python\Python39\lib\site-packages\insomniac\session.py", line 263, in prepare_session_state
hardban_indicator.detect_webview(device)
File "C:\Users\X\AppData\Local\Programs\Python\Python39\lib\site-packages\insomniac\hardban_indicator.py", line 19, in detect_webview
resumed_activity_output = execute_command("adb" + ("" if device_id is None else " -s " + device_id) +
File "C:\Users\X\AppData\Local\Programs\Python\Python39\lib\site-packages\insomniac\utils.py", line 177, in execute_command
err = cmd_res.stderr.strip()
AttributeError: 'NoneType' object has no attribute 'strip'

Originally created by @o-grd on GitHub (Sep 15, 2021). Original GitHub issue: https://github.com/alexal1/Insomniac/issues/379 -------- START: 2021-09-15 11:32:18.667635 -------- [09/15 11:32:20] Open Instagram app [09/15 11:32:20] Error - 'NoneType' object has no attribute 'strip' Traceback (most recent call last): File "C:\Users\X\AppData\Local\Programs\Python\Python39\lib\site-packages\insomniac\session.py", line 313, in run self.prepare_session_state(args, device_wrapper, app_version, save_profile_info=True) File "C:\Users\X\AppData\Local\Programs\Python\Python39\lib\site-packages\insomniac\session.py", line 263, in prepare_session_state hardban_indicator.detect_webview(device) File "C:\Users\X\AppData\Local\Programs\Python\Python39\lib\site-packages\insomniac\hardban_indicator.py", line 19, in detect_webview resumed_activity_output = execute_command("adb" + ("" if device_id is None else " -s " + device_id) + File "C:\Users\X\AppData\Local\Programs\Python\Python39\lib\site-packages\insomniac\utils.py", line 177, in execute_command err = cmd_res.stderr.strip() AttributeError: 'NoneType' object has no attribute 'strip' Error - 'NoneType' object has no attribute 'strip' Traceback (most recent call last): File "C:\Users\X\AppData\Local\Programs\Python\Python39\lib\site-packages\insomniac\session.py", line 313, in run self.prepare_session_state(args, device_wrapper, app_version, save_profile_info=True) File "C:\Users\X\AppData\Local\Programs\Python\Python39\lib\site-packages\insomniac\session.py", line 263, in prepare_session_state hardban_indicator.detect_webview(device) File "C:\Users\X\AppData\Local\Programs\Python\Python39\lib\site-packages\insomniac\hardban_indicator.py", line 19, in detect_webview resumed_activity_output = execute_command("adb" + ("" if device_id is None else " -s " + device_id) + File "C:\Users\X\AppData\Local\Programs\Python\Python39\lib\site-packages\insomniac\utils.py", line 177, in execute_command err = cmd_res.stderr.strip() AttributeError: 'NoneType' object has no attribute 'strip'
kerem closed this issue 2026-03-13 22:37:48 +03:00
Author
Owner

@alexal1 commented on GitHub (Sep 16, 2021):

Fixed in v3.7.28

<!-- gh-comment-id:920988528 --> @alexal1 commented on GitHub (Sep 16, 2021): Fixed in v3.7.28
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Insomniac#784
No description provided.