Git Product home page Git Product logo

Comments (3)

luckydonald avatar luckydonald commented on June 19, 2024

Beautiful.
What parameter? Can you provide a stacktrace please?

from pytg.

ender-null avatar ender-null commented on June 19, 2024
reply_id = '02000000533787000caf0e00000000000000000000000000'
sender.message_get(reply_id)
Traceback (most recent call last):
  File "/usr/local/lib/python3.4/dist-packages/pytg/sender.py", line 389, in _validate_input
    arg_value = func_type.parse(arg)
  File "/usr/local/lib/python3.4/dist-packages/pytg/argument_types.py", line 160, in parse
    value = super(NonNegativeNumber, self).parse(value)
  File "/usr/local/lib/python3.4/dist-packages/pytg/argument_types.py", line 142, in parse
    raise ArgumentParseError("Not a int/long")
pytg.exceptions.ArgumentParseError: Not a int/long

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.4/threading.py", line 920, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.4/threading.py", line 868, in run
    self._target(*self._args, **self._kwargs)
  File "/home/luxie/Projects/sakubo/core/bindings/tg.py", line 114, in inbox_listen
    tgreceiver.message(listener())
  File "/usr/local/lib/python3.4/dist-packages/pytg/utils.py", line 29, in start
    cr = func(*args, **kwargs)
  File "/usr/local/lib/python3.4/dist-packages/pytg/receiver.py", line 212, in message
    function.send(message)
  File "/home/luxie/Projects/sakubo/core/bindings/tg.py", line 75, in listener
    reply_msg = tgsender.message_get(msg['reply_id'])
  File "/usr/local/lib/python3.4/dist-packages/pytg/sender.py", line 612, in command_alias
    return self.execute_function(command_name, *args, **kwargs)
  File "/usr/local/lib/python3.4/dist-packages/pytg/sender.py", line 270, in execute_function
    command_name, new_args = self._validate_input(function_name, arguments)
  File "/usr/local/lib/python3.4/dist-packages/pytg/sender.py", line 396, in _validate_input
    function_name=function_name, number=i, type=func_type.__class__.__name__, param=str(func_type), error=str(err)))
ValueError: Error in function message_get: parameter #0 <msg_id> is not type NonNegativeNumber. (Not a int/long)

from pytg.

luckydonald avatar luckydonald commented on June 19, 2024

Fixed by 52e9390.

from pytg.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.