diff --git a/davtelepot/__init__.py b/davtelepot/__init__.py index ada1f54..d625f87 100644 --- a/davtelepot/__init__.py +++ b/davtelepot/__init__.py @@ -14,7 +14,7 @@ __author__ = "Davide Testa" __email__ = "davide@davte.it" __credits__ = ["Marco Origlia", "Nick Lee @Nickoala"] __license__ = "GNU General Public License v3.0" -__version__ = "2.4.7" +__version__ = "2.4.8" __maintainer__ = "Davide Testa" __contact__ = "t.me/davte" diff --git a/davtelepot/administration_tools.py b/davtelepot/administration_tools.py index 82d7df2..b9a37c3 100644 --- a/davtelepot/administration_tools.py +++ b/davtelepot/administration_tools.py @@ -782,11 +782,12 @@ async def _version_command(bot, update, user_record): try: _subprocess = await asyncio.create_subprocess_exec( 'git', 'rev-parse', 'HEAD', - stdout=asyncio.subprocess.PIPE + stdout=asyncio.subprocess.PIPE, + stderr=asyncio.subprocess.PIPE ) stdout, stderr = await _subprocess.communicate() if stderr is not None: - raise stderr + raise Exception(stderr.decode().strip()) version = stdout.decode().strip() except Exception as e: return f"{e}"