[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [tor-bugs] #24744 [Internal Services/Service - trac]: ValueError: invalid literal for int() with base 10: '$24207'



#24744: ValueError: invalid literal for int() with base 10: '$24207'
----------------------------------------------+---------------------
 Reporter:  cypherpunks                       |          Owner:  qbi
     Type:  defect                            |         Status:  new
 Priority:  Medium                            |      Milestone:
Component:  Internal Services/Service - trac  |        Version:
 Severity:  Normal                            |     Resolution:
 Keywords:                                    |  Actual Points:
Parent ID:                                    |         Points:
 Reviewer:                                    |        Sponsor:
----------------------------------------------+---------------------

Comment (by randolf):

 {{{
 pid = int(ticket.values.get('parent').lstrip('#'))
 }}}
 The above one is showing error because, it can't strip the left character
 with '#' as parameter, but it would work if it is like below

 {{{
 pid = int(ticket.values.get('parent').lstrip('$'))
 }}}

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/24744#comment:1>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs