Code Monkey home page Code Monkey logo

nozomi_miraha's People

Contributors

so-c avatar

nozomi_miraha's Issues

エントリィにラベルがないときの処理を追加する

quoteしようとしたとき、エントリィにラベルがないと、下記エラーが発生する。

object has no attribute 'tags'
Traceback (most recent call last):
File "/python27_runtime/python27_lib/versions/third_party/webapp2-2.5.1/webapp2.py", line 1536, in call
rv = self.handle_exception(request, response, e)
File "/python27_runtime/python27_lib/versions/third_party/webapp2-2.5.1/webapp2.py", line 1530, in call
rv = self.router.dispatch(request, response)
File "/python27_runtime/python27_lib/versions/third_party/webapp2-2.5.1/webapp2.py", line 1278, in default_dispatcher
return route.handler_adapter(request, response)
File "/python27_runtime/python27_lib/versions/third_party/webapp2-2.5.1/webapp2.py", line 1102, in call
return handler.dispatch()
File "/python27_runtime/python27_lib/versions/third_party/webapp2-2.5.1/webapp2.py", line 572, in dispatch
return self.handle_exception(e, self.app.debug)
File "/python27_runtime/python27_lib/versions/third_party/webapp2-2.5.1/webapp2.py", line 570, in dispatch
return method(_args, *_kwargs)
File "/base/data/home/apps/snozomi-miraha/1.364292949124139347/quote.py", line 12, in get
blog = Blog('http://mirahalibrary.blogspot.com/feeds/posts/default')
File "/base/data/home/apps/s
nozomi-miraha/1.364292949124139347/models.py", line 144, in init
self.posts = [Post(p) for p in post_elems]
File "/base/data/home/apps/s~nozomi-miraha/1.364292949124139347/models.py", line 162, in __init

self.tags = [t.term for t in entry_elem.tags]
File "/base/data/home/apps/s~nozomi-miraha/1.364292949124139347/lib/feedparser.py", line 413, in __getattr

raise AttributeError, "object has no attribute '%s'" % key
AttributeError: object has no attribute 'tags'

/hello に失敗している

XML or text declaration not at start of entity: line 2, column 0
Traceback (most recent call last):
File "/base/data/home/apps/snozomi-miraha/1.365658101151815855/hello.py", line 9, in get
weather = Weather(63, 'today')
File "/base/data/home/apps/s
nozomi-miraha/1.365658101151815855/models.py", line 121, in init

tweetをクラス化する

おはようツイートなどを低レベルの文字列処理しているのを、クラスに置き換える。

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.