Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
5hojib committed Jan 31, 2025
1 parent b3dd0dc commit a2ff793
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .python-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.12
3.13
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM 5hojib/aeon:beta
FROM 5hojib/aeon:latest

WORKDIR /usr/src/app
RUN chmod 777 /usr/src/app
Expand Down
2 changes: 1 addition & 1 deletion bot/helper/listeners/jdownloader_listener.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ async def _jd_listener():
packages = await jdownloader.device.downloads.query_packages(
[{"finished": True, "saveTo": True}],
)
except:
except Exception:
continue

all_packages = {pack["uuid"]: pack for pack in packages}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ async def _event_handler(self):
)
try:
await wait_for(self.event.wait(), timeout=self._timeout)
except:
except Exception:
await edit_message(self._reply_to, "Timed Out. Task has been cancelled!")
self.listener.is_cancelled = True
self.event.set()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def _get_combined_info(result, old_info):
time() - old_info.get("last_update", 0)
)
eta = (bytesTotal - bytesLoaded) / speed
except:
except Exception:
eta = 0
return {
"name": name,
Expand Down Expand Up @@ -64,7 +64,7 @@ async def get_download(gid, old_info):
],
)
return _get_combined_info(result, old_info) if len(result) > 1 else result[0]
except:
except Exception:
return old_info


Expand All @@ -80,7 +80,7 @@ async def _update(self):
def progress(self):
try:
return f"{round((self._info.get('bytesLoaded', 0) / self._info.get('bytesTotal', 0)) * 100, 2)}%"
except:
except Exception:
return "0%"

def processed_bytes(self):
Expand Down
2 changes: 1 addition & 1 deletion bot/helper/telegram_helper/message_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ async def get_tg_link_message(link, user_id=""):
raise TgLinkException("We don't have access to this chat!") from e
if not user_message.empty:
return (links, user_session) if links else (user_message, user_session)
return None
return None, None
raise TgLinkException("Private: Please report!")


Expand Down
1 change: 1 addition & 0 deletions myjd/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
__version__ = "1.1.7"

__all__ = [
"MyJdApi",
"MYJDApiCommandNotFoundException",
"MYJDApiException",
"MYJDApiInterfaceNotFoundException",
Expand Down

0 comments on commit a2ff793

Please sign in to comment.