Skip to content

Commit

Permalink
Merge pull request #434 from Matt3oV/main
Browse files Browse the repository at this point in the history
Fixes error when using MongoDB
  • Loading branch information
aahnik authored Jun 26, 2023
2 parents 7170862 + 42690ac commit 0c2f456
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tgcf/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ async def _(peer):
if not forward.use_this:
continue
source = forward.source
if type(source) != int and source.strip() == "":
if not isinstance(source, int) and source.strip() == "":
continue
src = await _(forward.source)
from_to_dict[src] = [await _(dest) for dest in forward.dest]
Expand Down

0 comments on commit 0c2f456

Please sign in to comment.