Skip to content

Commit

Permalink
fix: fix a bug
Browse files Browse the repository at this point in the history
  • Loading branch information
en9inerd committed Nov 10, 2023
1 parent 6c2353e commit ccebe39
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tgeraser/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,10 @@ async def get_credentials(args: Dict[str, Any]) -> Dict[str, Union[str, int]]:
json.dump(creds, file)
sprint(f"Credentials saved to '{path_to_creds_file}' file.")

creds["session_name"] = path_to_creds_dir + (
args["<session_name>"] or await choose_session(path_to_creds_dir)
creds["session_name"] = (
path_to_creds_dir
+ "/"
+ (args["<session_name>"] or await choose_session(path_to_creds_dir))
)
except Exception as e:
raise TgEraserException(f"Error in get_credentials: {e}")
Expand Down

0 comments on commit ccebe39

Please sign in to comment.