AvinashReddy3108 / PaperplaneExtended

Ded memes here, use https://friendly-telegram.gitlab.io/
Other
40 stars 1.03k forks source link

adding function errors_handler #34

Closed x0x8x closed 5 years ago

x0x8x commented 5 years ago

Prevent an error ImportError: cannot import name 'errors_handler' from 'userbot.events' (/opt/PaperplaneExtended/userbot/events.py) causing by: File "/opt/PaperplaneExtended/userbot/modules/github.py", line 2, in from userbot.events import register, errors_handler

AvinashReddy3108 commented 5 years ago

OOF, it's merged into the basic wrapper.

x0x8x commented 5 years ago

OOF, it's merged into the basic wrapper.

anyhow - it doesn't work, I get an exception

2019-10-04 17:02:49,221 - urllib3.connectionpool - DEBUG - https://raw.githubusercontent.com:443 "GET /ngosang/trackerslist/master/trackers_best.txt HTTP/1.1" 200 291
Traceback (most recent call last):
  File "/usr/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/opt/PaperplaneExtended/userbot/__main__.py", line 27, in <module>
    imported_module = import_module("userbot.modules." + module_name)
  File "/usr/lib/python3.7/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/opt/PaperplaneExtended/userbot/modules/github.py", line 2, in <module>
    from userbot.events import register, errors_handler
ImportError: cannot import name 'errors_handler' from 'userbot.events' (/opt/PaperplaneExtended/userbot/events.py)