Skip to content
This repository was archived by the owner on May 15, 2021. It is now read-only.

Commit 0580288

Browse files
rking32code-rgb
authored andcommitted
attempt to fix build and deepsource error
1 parent 3783c64 commit 0580288

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ html-telegraph-poster
1515
motor
1616
nest_asyncio
1717
oauth2client
18-
Pillow==6.2.2
18+
Pillow==7.1.0
1919
psutil
2020
pybase64
2121
pyrogram

userge/config.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#
99
# All rights reserved.
1010

11-
__all__ = ['Config']
11+
__all__ = ['Config', 'get_version']
1212

1313
import os
1414
from typing import Set
@@ -93,10 +93,13 @@ class Config:
9393
logbot.del_last_msg()
9494

9595

96-
for ref in _REPO.remote(Config.UPSTREAM_REMOTE).refs:
97-
branch = str(ref).split('/')[-1]
98-
if branch not in _REPO.branches:
99-
_REPO.create_head(branch, ref)
96+
try:
97+
for ref in _REPO.remote(Config.UPSTREAM_REMOTE).refs:
98+
branch = str(ref).split('/')[-1]
99+
if branch not in _REPO.branches:
100+
_REPO.create_head(branch, ref)
101+
except ValueError as v_e:
102+
_LOG.error(v_e)
100103

101104

102105
def get_version() -> str:

userge/plugins/tools/updater.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ async def check_update(message: Message):
7979
await message.edit(
8080
'**Userge Successfully Updated!**\n'
8181
'`Now restarting... Wait for a while!`', del_in=3)
82-
asyncio.get_event_loop().create_task(userge.restart(update_req=True))
82+
asyncio.get_event_loop().create_task(userge.restart(True))
8383
return
8484
if not Config.HEROKU_GIT_URL:
8585
await message.err("please set heroku things...")

0 commit comments

Comments
 (0)