Skip to content
This repository has been archived by the owner on Jan 27, 2025. It is now read-only.

Commit

Permalink
Update to v3.7.27
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Mishchenko committed Sep 15, 2021
1 parent bee516d commit 16283c0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion insomniac/__version__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
__title__ = 'insomniac'
__description__ = 'Simple Instagram bot for automated Instagram interaction using Android.'
__url__ = 'https://github.com/alexal1/Insomniac/'
__version__ = '3.7.26'
__version__ = '3.7.27'
__debug_mode__ = False
__author__ = 'Insomniac Team'
__author_email__ = 'info@insomniac-bot.com'
Expand Down
6 changes: 5 additions & 1 deletion insomniac/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,11 @@ def clear_instagram_data(device_id, app_id):


def execute_command(cmd) -> Optional[str]:
cmd_res = subprocess.run(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True, encoding="utf8")
try:
cmd_res = subprocess.run(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True, encoding="utf8")
except IndexError:
# There's a bug in some Python versions that raises this error https://github.com/python/cpython/pull/24777
return None
err = cmd_res.stderr.strip()
if err:
print(COLOR_FAIL + err + COLOR_ENDC)
Expand Down

0 comments on commit 16283c0

Please sign in to comment.