Comments (7)
Also:
$ gh feed surajssd -p
Listing events...
Traceback (most recent call last):
File "/usr/bin/gh", line 9, in <module>
load_entry_point('gitsome==0.6.0', 'console_scripts', 'gh')()
File "/usr/lib/python3.4/site-packages/gitsome/main_cli.py", line 26, in cli
github.cli()
File "/usr/lib/python3.4/site-packages/click/core.py", line 716, in __call__
return self.main(*args, **kwargs)
File "/usr/lib/python3.4/site-packages/click/core.py", line 696, in main
rv = self.invoke(ctx)
File "/usr/lib/python3.4/site-packages/click/core.py", line 1060, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/lib/python3.4/site-packages/click/core.py", line 889, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/lib/python3.4/site-packages/click/core.py", line 534, in invoke
return callback(*args, **kwargs)
File "/usr/lib/python3.4/site-packages/click/decorators.py", line 64, in new_func
return ctx.invoke(f, obj, *args[1:], **kwargs)
File "/usr/lib/python3.4/site-packages/click/core.py", line 534, in invoke
return callback(*args, **kwargs)
File "/usr/lib/python3.4/site-packages/gitsome/githubcli.py", line 226, in feed
github.feed(user_or_repo, private, pager)
File "/usr/lib/python3.4/site-packages/gitsome/github.py", line 86, in auth_wrapper
return func(self, *args, **kwargs)
File "/usr/lib/python3.4/site-packages/gitsome/github.py", line 323, in feed
build_urls=False)
File "/usr/lib/python3.4/site-packages/gitsome/table.py", line 128, in build_table_setup
build_urls)
File "/usr/lib/python3.4/site-packages/gitsome/table.py", line 69, in build_table
output += format_method(view_entry) + '\n'
File "/usr/lib/python3.4/site-packages/gitsome/formatter.py", line 358, in format_event
item += self.event_handlers[event.type](event)
File "/usr/lib/python3.4/site-packages/gitsome/formatter.py", line 202, in _format_create_delete_event
event.payload['description'])
File "/usr/lib/python3.4/site-packages/gitsome/formatter.py", line 135, in _format_indented_message
message = self.strip_line_breaks(message)
File "/usr/lib/python3.4/site-packages/gitsome/formatter.py", line 643, in strip_line_breaks
text = re.sub(r'\r', '', text)
File "/usr/lib64/python3.4/re.py", line 179, in sub
return _compile(pattern, flags).sub(repl, string, count)
TypeError: expected string or buffer
from gitsome.
Hi @surajssd, thanks for the bug report. I am able to reproduce this issue running:
$ gh feed surajssd -p
Curious if you see a problem running the following command, which works for me:
$ gh feed donnemartin -p
from gitsome.
$ gh feed donnemartin -p
worked perfectly fine!
from gitsome.
I looked into this, and this is happens because the description of the repo is passed as None to the json, which when parsed, obviously throws exceptions.
I have opened a simple fix at #89
I am not sure if @surajssd's gh feed
command works, as it follows a different execution stack from what I see.
from gitsome.
@SanketDG do you know why it's a special case with my username and also with my friend's username but works with @donnemartin 's username! :-|
from gitsome.
do you know why it's a special case with my username and also with my friend's username
I don't know about your friend but for your case https://github.com/surajssd/flaskapp-registration has no description. Lots of repos dont have descriptions, so this issue should have surfaced a long time ago. I might have to dig in deeper to find out the real problem.
from gitsome.
Fixed in #89.
Lots of repos dont have descriptions, so this issue should have surfaced a long time ago. I might have to dig in deeper to find out the real problem.
See #89 (comment).
from gitsome.
Related Issues (20)
- EEL issue HOT 1
- command errored out with exit status 1: python setup.py egg_info check the logs for full command output HOT 2
- No module named 'prompt_toolkit.key_binding.manager' HOT 1
- Error when Running pip install : python setup.py egg_info
- conflict between `gh` command name between gitsome and official GitHub client HOT 2
- python setup.py egg_info Check the logs for full command output.
- Kali Linux - Problem HOT 1
- should pyzmq be listed in setup.py or requirements,txt?
- I am unable to install hdbscan for a project
- prompt-toolkit HOT 1
- Feedparser AttributeError in Python 3.9 HOT 1
- error: pip3 install gitsome --upgrade
- bad interpreter: /usr/local/opt/python/bin/python3.7: no such file or directory
- Mark as archived
- Missing `f` prefix on f-strings
- installation of gitsome throws spurious warning HOT 1
- Configuring gitsome with an ssh-key HOT 1
- # [Codecov](https://codecov.io/gh/donnemartin/gitsome/pull/131?src=pr&el=h1) Report
- Unable to install opencv-python at ubuntu 18.04 using dockerfile
- `feedparser=5.2.1` does not support the latest version of `setuptools` HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gitsome.